TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.functional.isposinf

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

Tests if each element of input is positive 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.isposinf(a)
tensor([False,  True, False])

On this page

Ask DeepWiki