Spec-Zone.ru › TensorFlow

tf.keras.ops.ctc_loss

CTC (Connectionist Temporal Classification) loss.

View aliases

Main aliases

tf.keras.ops.nn.ctc_loss

tf.keras.ops.ctc_loss(
    target, output, target_length, output_length, mask_index=0
)
Args
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.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/ops/ctc_loss

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API