the gradient. This class performs the softmax operation for you, so inputs
should be e.g. linear projections of outputs by an LSTM.
Args
inputs
A Tensor. Must be one of the following types: float32, float64.
3-D, shape: (max_time x batch_size x num_classes), the logits.
labels_indices
A Tensor of type int64.
The indices of a SparseTensor<int32, 2>.
labels_indices(i, :) == [b, t] means labels_values(i) stores the id for
(batch b, time t).
labels_values
A Tensor of type int32.
The values (labels) associated with the given batch and time.
sequence_length
A Tensor of type int32.
A vector containing sequence lengths (batch).
preprocess_collapse_repeated
An optional bool. Defaults to False.
Scalar, if true then repeated labels are
collapsed prior to the CTC calculation.
ctc_merge_repeated
An optional bool. Defaults to True.
Scalar. If set to false, during CTC calculation
repeated non-blank labels will not be merged and are interpreted as
individual labels. This is a simplified version of CTC.
ignore_longer_outputs_than_inputs
An optional bool. Defaults to False.
Scalar. If set to true, during CTC
calculation, items that have longer output sequences than input sequences
are skipped: they don't contribute to the loss term and have zero-gradient.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[],[]]