tensor.abs
#tensor.abs
Computes the absolute value of all elements in the input tensor.
Args
self
(@Tensor<T>
) - The input tensor.
Returns
A new Tensor<T>
of the same shape as the input tensor with the absolute value of all elements in the input tensor.
Example
Last updated