powered by
Isnan
torch_isnan(self)
(Tensor) A tensor to check
Returns a new tensor with boolean elements representing if each element is NaN or not.
NaN
if (torch_is_installed()) { torch_isnan(torch_tensor(c(1, NaN, 2))) }
Run the code above in your browser using DataLab