TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.functional.isneginf

tensorplay.functional.isneginf(input, *, out=None) → Tensor[source]

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

Parameters:

input (Tensor) – the input tensor.

Keyword Arguments:

out (Tensor, optional) – the output tensor.

Example:

>>> a = tensorplay.tensor([-float('inf'), float('inf'), 1.2])
>>> tensorplay.isneginf(a)
tensor([ True, False, False])

On this page

Ask DeepWiki