# tensorplay.functional.isposinf Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.isposinf.html ```python tensorplay.functional.isposinf(input, *, out=None) → Tensor ``` Tests if each element of input is positive infinity or not. Parameters: input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.tensor([-float('inf'), float('inf'), 1.2]) >>> tensorplay.isposinf(a) tensor([False, True, False]) ```