powered by
Isposinf
torch_isposinf(self)
(Tensor) the input tensor.
Tests if each element of input is positive infinity or not.
input
if (torch_is_installed()) { a <- torch_tensor(c(-Inf, Inf, 1.2)) torch_isposinf(a) }
Run the code above in your browser using DataLab