SparseCategoricalCrossentropyΒΆ
Computes the sparse categorical crossentropy loss.
Abstract Signature:
SparseCategoricalCrossentropy(y_true: Tensor, y_pred: Tensor, from_logits: bool = False, ignore_class: int)
JAX (Core)
API:
optax.softmax_cross_entropy_with_integer_labelsStrategy: Direct Mapping
TensorFlow
API:
tf.keras.losses.sparse_categorical_crossentropyStrategy: Direct Mapping
Flax NNX
API:
optax.softmax_cross_entropy_with_integer_labelsStrategy: Direct Mapping
PaxML / Praxis
API:
optax.softmax_cross_entropy_with_integer_labelsStrategy: Direct Mapping