Skip to content
fn

abs_inplace_op

→TensorImplPtr
int abs_inplace_op(const int & a)

In-place absolute value: writes ∣x∣|x| back into a.

Math

ai←∣ai∣a_i \leftarrow |a_i|

See Also

abs_op — out-of-place counterpart.

Parameters

aTensorImplPtr
Tensor to take absolute value of in place. Must be non-null.

Returns

TensorImplPtr

The same pointer as a.