SparseCategoricalCrossentropy ============================= Computes the sparse categorical crossentropy loss. **Abstract Signature:** ``SparseCategoricalCrossentropy(y_true: Tensor, y_pred: Tensor, from_logits: bool = False, ignore_class: int)`` .. raw:: html

PyTorch

API: torch.nn.functional.cross_entropy
Strategy: Direct Mapping

JAX (Core)

API: optax.softmax_cross_entropy_with_integer_labels
Strategy: Direct Mapping

Keras

API: keras.losses.sparse_categorical_crossentropy
Strategy: Direct Mapping

TensorFlow

API: tf.keras.losses.sparse_categorical_crossentropy
Strategy: Direct Mapping

Apple MLX

API: mlx.nn.losses.cross_entropy
Strategy: Direct Mapping

Flax NNX

API: optax.softmax_cross_entropy_with_integer_labels
Strategy: Direct Mapping

PaxML / Praxis

API: optax.softmax_cross_entropy_with_integer_labels
Strategy: Direct Mapping