is_inf¶
- dragon.math.- is_inf(
 inputs,
 **kwargs
 )[source]¶
- Check if the elements of input are infinite. \[\text{out} = \text{isinf}(\text{input}) \]- Examples: - x = dragon.constant([0., 1., float('inf')]) print(dragon.math.is_inf(x)) # [False, False, True] - Parameters:
- inputs (dragon.Tensor) – The input tensor.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
