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
Always computed in FP32 (see PowBackward schema). 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