warp.nonzero#

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

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