TensorDictBase.sub#
- TensorDictBase.sub_(other: TensorDictBase | Tensor | float, alpha: float | None = None)#
In-place version of
sub().Note
In-place
subdoes not supportdefaultkeyword argument.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.