warp.sign#
- warp.sign(x: Scalar) Scalar#
Kernel
Compute the sign of
x.- Returns:
-1 if
x< 0 and 1 otherwise.
- warp.sign(x: Vector[Any, Scalar]) Scalar
Kernel
Differentiable
Compute the sign of
x.- Returns:
-1 for negative elements of
xand 1 otherwise.