View source: R/gen-namespace.R
torch_signbit | R Documentation |
Signbit
torch_signbit(self)
self |
(Tensor) the input tensor. |
Tests if each element of input
has its sign bit set (is less than zero) or not.
if (torch_is_installed()) {
a <- torch_tensor(c(0.7, -1.2, 0., 2.3))
torch_signbit(a)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.