Isposinf
torch_isposinf(self)
self
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) }
Useful links