torch_isposinf: Isposinf

View source: R/gen-namespace.R

torch_isposinfR Documentation

Isposinf

Description

Isposinf

Usage

torch_isposinf(self)

Arguments

self

(Tensor) the input tensor.

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

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

Examples

if (torch_is_installed()) {

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

torch documentation built on May 29, 2024, 9:54 a.m.