cupy.isfinite#

cupy.isfinite(x, /, out=None, \*, casting='same_kind', dtype=None)#

Tests finiteness elementwise.

Each element of returned array is True only if the corresponding element of the input is finite (i.e. not an infinity nor NaN).

See also

numpy.isfinite