warp.nonzero#

warp.nonzero(x: Scalar) Scalar#
  • Kernel

Compute 1.0 if x is not equal to zero, otherwise 0.0.