Python wrappers
Public Python APIs implemented by this engine symbol.Compute the elementwise maximum with broadcasting and autograd support.
Parameters
aTensorImplPtrFirst operand.
bTensorImplPtrSecond operand. Broadcast-compatible with
a.Returns
TensorImplPtrTensor of shape broadcast(a.shape, b.shape) holding the elementwise maximum.
Notes
At ties () the gradient is routed entirely to a. When
grad-tracking is on, registers a MaximumBackward node which saves
both inputs.
Examples
>>> auto y = maximum_op(a, b); // y[i] = max(a[i], b[i]) with broadcasting