torch_isneginf: Isneginf

Description Usage Arguments isneginf(input, *, out=None) -> Tensor Examples

View source: R/gen-namespace.R

Description

Isneginf

Usage

1

Arguments

self

(Tensor) the input tensor.

isneginf(input, *, out=None) -> Tensor

Tests if each element of input is negative infinity or not.

Examples

1
2
3
4
5
if (torch_is_installed()) {

a <- torch_tensor(c(-Inf, Inf, 1.2))
torch_isneginf(a)
}

torch documentation built on Oct. 7, 2021, 9:22 a.m.