Isneginf
Source:R/gen-namespace-docs.R, R/gen-namespace-examples.R, R/gen-namespace.R
torch_isneginf.RdIsneginf
Examples
if (torch_is_installed()) {
a <- torch_tensor(c(-Inf, Inf, 1.2))
torch_isneginf(a)
}
#> torch_tensor
#> 1
#> 0
#> 0
#> [ CPUBoolType{3} ]