In-place clip / clamp: writes back into a.
Math
See Also
clip_op — out-of-place counterpart.
Parameters
aTensorImplPtrTensor to clip in place. Must be non-null.
lodoubleLower bound; values below
lo are set to lo.hidoubleUpper bound; values above
hi are set to hi.Returns
TensorImplPtrThe same pointer as a.
Notes
Implemented directly (without going through the generic
inplace_unary helper) because the two scalar parameters
lo / hi cannot be threaded through the zero-argument
function-pointer template the other entry points use.