@Operator public final class CTCBeamSearchDecoder extends PrimitiveOp
A note about the attribute merge_repeated: For the beam search decoder, this means that if consecutive entries in a beam are the same, only the first of these is emitted. That is, when the top path is "A B B B B", "A B" is returned if merge_repeated = True but "A B B B B" is returned if merge_repeated = False.
| Modifier and Type | Class and Description |
|---|---|
static class |
CTCBeamSearchDecoder.Options
Optional attributes for
CTCBeamSearchDecoder |
operation| Modifier and Type | Method and Description |
|---|---|
static CTCBeamSearchDecoder |
create(Scope scope,
Operand<Float> inputs,
Operand<Integer> sequenceLength,
Long beamWidth,
Long topPaths,
CTCBeamSearchDecoder.Options... options)
Factory method to create a class to wrap a new CTCBeamSearchDecoder operation to the graph.
|
List<Output<Long>> |
decodedIndices()
A list (length: top_paths) of indices matrices.
|
List<Output<Long>> |
decodedShape()
A list (length: top_paths) of shape vector.
|
List<Output<Long>> |
decodedValues()
A list (length: top_paths) of values vectors.
|
Output<Float> |
logProbability()
A matrix, shaped: `(batch_size x top_paths)`.
|
static CTCBeamSearchDecoder.Options |
mergeRepeated(Boolean mergeRepeated) |
equals, hashCode, toStringpublic static CTCBeamSearchDecoder create(Scope scope, Operand<Float> inputs, Operand<Integer> sequenceLength, Long beamWidth, Long topPaths, CTCBeamSearchDecoder.Options... options)
scope - current graph scopeinputs - 3-D, shape: `(max_time x batch_size x num_classes)`, the logits.sequenceLength - A vector containing sequence lengths, size `(batch)`.beamWidth - A scalar >= 0 (beam search beam width).topPaths - A scalar >= 0, <= beam_width (controls output size).options - carries optional attributes valuespublic static CTCBeamSearchDecoder.Options mergeRepeated(Boolean mergeRepeated)
mergeRepeated - If true, merge repeated classes in output.public List<Output<Long>> decodedIndices()
public List<Output<Long>> decodedValues()
public List<Output<Long>> decodedShape()
Copyright © 2015–2019. All rights reserved.