Class CtcGreedyDecoder<T extends TNumber>
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.nn.CtcGreedyDecoder<T>
- All Implemented Interfaces:
Op
Performs greedy decoding on the logits given in inputs.
A note about the attribute merge_repeated: if enabled, when
consecutive logits' maximum indices are the same, only the first of
these is emitted. Labeling the blank '*', the sequence "A B B * B B"
becomes "A B B" if merge_repeated = True and "A B B B B" if
merge_repeated = False.
Regardless of the value of merge_repeated, if the maximum index of a given
time and batch corresponds to the blank, index (num_classes - 1), no new
element is emitted.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCtcGreedyDecoder.Inputs<T extends TNumber>static classOptional attributes forCtcGreedyDecoder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CtcGreedyDecoder.OptionsblankIndex(Long blankIndex) Sets the blankIndex option.static <T extends TNumber>
CtcGreedyDecoder<T> create(Scope scope, Operand<T> inputs, Operand<TInt32> sequenceLength, CtcGreedyDecoder.Options... options) Factory method to create a class wrapping a new CTCGreedyDecoder operation.Gets decodedIndices.Gets decodedShape.Gets decodedValues.Gets logProbability.static CtcGreedyDecoder.OptionsmergeRepeated(Boolean mergeRepeated) Sets the mergeRepeated option.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
CtcGreedyDecoder
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static <T extends TNumber> CtcGreedyDecoder<T> create(Scope scope, Operand<T> inputs, Operand<TInt32> sequenceLength, CtcGreedyDecoder.Options... options) Factory method to create a class wrapping a new CTCGreedyDecoder operation.- Type Parameters:
T- data type forCTCGreedyDecoderoutput and operands- Parameters:
scope- current scopeinputs- 3-D, shape:(max_time x batch_size x num_classes), the logits.sequenceLength- A vector containing sequence lengths, size(batch_size).options- carries optional attribute values- Returns:
- a new instance of CtcGreedyDecoder
-
mergeRepeated
Sets the mergeRepeated option.- Parameters:
mergeRepeated- If True, merge repeated classes in output.- Returns:
- this Options instance.
-
blankIndex
Sets the blankIndex option.- Parameters:
blankIndex- the blankIndex option- Returns:
- this Options instance.
-
decodedIndices
-
decodedValues
-
decodedShape
-
logProbability
-