warp.sign#

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

Return -1 if x < 0, return 1 otherwise.

warp.sign(x: Vector[Any, Scalar]) Scalar
  • Kernel

  • Differentiable

Return -1 for the negative elements of x, and 1 otherwise.