torch_isneginf: Isneginf

View source: R/gen-namespace.R

torch_isneginfR Documentation

Isneginf

Description

Isneginf

Usage

torch_isneginf(self)

Arguments

self

(Tensor) the input tensor.

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

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

Examples

if (torch_is_installed()) {

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

torch documentation built on June 7, 2023, 6:19 p.m.