Isfinite
Isfinite
torch_isfinite(self)
self |
(Tensor) A tensor to check |
Returns a new tensor with boolean elements representing if each element is Finite
or not.
if (torch_is_installed()) { torch_isfinite(torch_tensor(c(1, Inf, 2, -Inf, NaN))) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.