CtcLoss.Options

public static class CtcLoss.Options

Optional attributes for CtcLoss

Public Methods

CtcLoss.Options
ctcMergeRepeated(Boolean ctcMergeRepeated)
CtcLoss.Options
ignoreLongerOutputsThanInputs(Boolean ignoreLongerOutputsThanInputs)
CtcLoss.Options
preprocessCollapseRepeated(Boolean preprocessCollapseRepeated)

Inherited Methods

Public Methods

public CtcLoss.Options ctcMergeRepeated (Boolean ctcMergeRepeated)

Parameters
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)

Parameters
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.

public CtcLoss.Options preprocessCollapseRepeated (Boolean preprocessCollapseRepeated)

Parameters
preprocessCollapseRepeated Scalar, if true then repeated labels are collapsed prior to the CTC calculation.