torch_abs {torch} | R Documentation |
Abs
Description
Abs
Usage
torch_abs(self)
Arguments
self |
(Tensor) the input tensor. |
abs(input) -> Tensor
Computes the element-wise absolute value of the given input
tensor.
Examples
if (torch_is_installed()) {
torch_abs(torch_tensor(c(-1, -2, 3)))
}
[Package torch version 0.13.0 Index]