Python wrappers
Public Python APIs implemented by this engine symbol.Compute the elementwise tensor-tensor power with broadcasting and autograd support.
Parameters
aTensorImplPtrBase tensor.
bTensorImplPtrExponent tensor. Broadcast-compatible with
a.Returns
TensorImplPtrTensor of shape broadcast(a.shape, b.shape) holding .
Notes
Integer inputs stay in their integer dtype; floating inputs follow
PowBackward schema under AMP. When grad-tracking is on, registers
a PowBackward node which saves both inputs.
Examples
>>> auto y = pow_op(a, b); // y[i] = a[i] ** b[i] with broadcasting