tf.keras.ops.ctc_loss

CTC (Connectionist Temporal Classification) loss.

target A tensor of shape (batch_size, max_length) containing the true labels in integer format.
output A tensor of shape (batch_size, max_length, num_classes) containing logits (the output of your model).
target_length A tensor of shape (batch_size,) containing the true label lengths.
output_length A tensor of shape (batch_size,) containing the output lengths.
mask_index The index of the mask character in the vocabulary. Defaults to 0.