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