View source: R/gen-namespace.R
torch_isinf | R Documentation |
Isinf
torch_isinf(self)
self |
(Tensor) A tensor to check |
Returns a new tensor with boolean elements representing if each element is +/-INF
or not.
if (torch_is_installed()) {
torch_isinf(torch_tensor(c(1, Inf, 2, -Inf, NaN)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.