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