TensorDictBase.pow#
- TensorDictBase.pow_(other: TensorDictBase | Tensor) Self#
Raises every leaf to the power
otherin place and returnsself.The in-place version of
pow(), called bytd **= other. It has nodefault: a tensordictothermust have every key of the tensordict, and its other keys are ignored.- Parameters:
other (TensorDictBase, Tensor or Number) – the exponent, paired with the leaves as in
pow().
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.