tf.keras.backend.ctc_batch_cost

View source on GitHub

Runs CTC loss algorithm on each batch element.

tf.keras.backend.ctc_batch_cost(
    y_true, y_pred, input_length, label_length
)

Arguments:

Returns:

Tensor with shape (samples,1) containing the CTC loss of each element.