latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.isposinf
- tensorplay.functional.isposinf(input, *, out=None) Tensor[source]
Tests if each element of
inputis 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])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

