Sign
Returns a new tensor with the signs of the elements.
Abstract Signature:
Sign(input: Tensor)
PyTorch
API: torch.sign
Strategy: Direct Mapping
JAX (Core)
API: jax.numpy.sign
Strategy: Direct Mapping
NumPy
API: numpy.sign
Strategy: Direct Mapping
Keras
API: keras.ops.sign
Strategy: Direct Mapping
TensorFlow
API: tf.math.sign
Strategy: Direct Mapping
Apple MLX
API: mlx.core.sign
Strategy: Direct Mapping
Flax NNX
API: jax.numpy.sign
Strategy: Direct Mapping
PaxML / Praxis
API: jax.numpy.sign
Strategy: Direct Mapping