cupy.sign#

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

Elementwise sign function.

It returns -1, 0, or 1 depending on the sign of the input.

See also

numpy.sign