{ }
Calculates the CTC Loss (log probability) for each batch entry.
tf.raw_ops.CTCLossV2(
inputs,
labels_indices,
labels_values,
sequence_length,
preprocess_collapse_repeated=False,
ctc_merge_repeated=True,
ignore_longer_outputs_than_inputs=False,
name=None
)
Also calculates
the gradient. This class performs the softmax operation for you, so inputs should be e.g. linear projections of outputs by an LSTM.
Returns | |
---|---|
A tuple of Tensor objects (loss, gradient).
|
|
loss
|
A Tensor of type float32 .
|
gradient
|
A Tensor of type float32 .
|