warp.nonzero#

warp.nonzero(x: Scalar) Scalar#
  • Kernel: true
  • Python: true
  • Differentiable: false

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