View source: R/gen-namespace.R
torch_abs | R Documentation |
Abs
torch_abs(self)
self |
(Tensor) the input tensor. |
Computes the element-wise absolute value of the given input
tensor.
\mbox{out}_{i} = |\mbox{input}_{i}|
if (torch_is_installed()) {
torch_abs(torch_tensor(c(-1, -2, 3)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.