
Last chance! 50% off unlimited learning
Sale ends in
Isneginf
torch_isneginf(self)
(Tensor) the input tensor.
Tests if each element of input
is negative infinity or not.
# NOT RUN {
if (torch_is_installed()) {
a <- torch_tensor(c(-Inf, Inf, 1.2))
torch_isneginf(a)
}
# }
Run the code above in your browser using DataLab