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