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