chainerx.isinf

chainerx.isinf(x)

Test element-wise for positive or negative infinity.

Parameters

x (ndarray) – Input array.

Returns

True where x is positive or negative infinity, false otherwise.

Return type

ndarray

Note

During backpropagation, this function does not propagate gradients.

See also

numpy.isinf