UniqueΒΆ

Returns the unique elements of the input tensor.

Abstract Signature:

Unique(x: Tensor, sorted: bool = True, return_inverse: bool = False, return_counts: bool = False, axis: int)

PyTorch

API: torch.unique
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.unique
Strategy: Direct Mapping

NumPy

API: numpy.unique
Strategy: Direct Mapping

Keras

API: β€”
Strategy: Custom / Partial

TensorFlow

API: tf.unique
Strategy: Direct Mapping

Apple MLX

API: mlx.core.unique
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.unique
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.unique
Strategy: Direct Mapping