torch.foreach.pow_#
- torch.foreach.pow_(inputs: TensorList, exponent: Scalar, /) tuple[Tensor, ...] | list[Tensor][source]#
- torch.foreach.pow_(inputs: TensorList, exponent: ScalarList, /) tuple[Tensor, ...] | list[Tensor]
- torch.foreach.pow_(inputs: TensorList, exponent: TensorList, /) tuple[Tensor, ...] | list[Tensor]
In-place version of
torch.foreach.pow().This is semantically equivalent to applying
torch.pow()independently at every list position. Mutates every tensor ininputsand returns the exact input container object.Tensor-list arguments must be non-empty. Corresponding tensor or scalar lists must have the same length. An accelerated multi-tensor implementation is used only when supported by the inputs; otherwise the operation falls back to per-tensor execution.
The scalar-left form has no in-place variant.