chainerx.isnan

chainerx.isnan(x)

Test element-wise for NaN and return result as a boolean array.

Parameters

x (ndarray) – Input array.

Returns

True where x is NaN, false otherwise

Return type

ndarray

Note

During backpropagation, this function does not propagate gradients.

See also

numpy.isnan