Modifier and Type | Method and Description |
---|---|
CtcLoss.Options |
ctcMergeRepeated(Boolean ctcMergeRepeated) |
CtcLoss.Options |
ignoreLongerOutputsThanInputs(Boolean ignoreLongerOutputsThanInputs) |
CtcLoss.Options |
preprocessCollapseRepeated(Boolean preprocessCollapseRepeated) |
public CtcLoss.Options preprocessCollapseRepeated(Boolean preprocessCollapseRepeated)
preprocessCollapseRepeated
- Scalar, if true then repeated labels are
collapsed prior to the CTC calculation.public CtcLoss.Options ctcMergeRepeated(Boolean ctcMergeRepeated)
ctcMergeRepeated
- 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.public CtcLoss.Options ignoreLongerOutputsThanInputs(Boolean ignoreLongerOutputsThanInputs)
ignoreLongerOutputsThanInputs
- 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.Copyright © 2022. All rights reserved.