Abs
torch_abs(self)
self
Computes the element-wise absolute value of the given input tensor.
input
if (torch_is_installed()) { torch_abs(torch_tensor(c(-1, -2, 3))) }
Useful links