tf.raw_ops.CTCGreedyDecoder
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
Performs greedy decoding on the logits given in inputs.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
tf.compat.v1.raw_ops.CTCGreedyDecoder
tf.raw_ops.CTCGreedyDecoder(
inputs, sequence_length, merge_repeated=False, blank_index=-1, name=None
)
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.
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.
|
sequence_length
|
A Tensor of type int32 .
A vector containing sequence lengths, size (batch_size) .
|
merge_repeated
|
An optional bool . Defaults to False .
If True, merge repeated classes in output.
|
blank_index
|
An optional int . Defaults to -1 .
|
name
|
A name for the operation (optional).
|
Returns |
A tuple of Tensor objects (decoded_indices, decoded_values, decoded_shape, log_probability).
|
decoded_indices
|
A Tensor of type int64 .
|
decoded_values
|
A Tensor of type int64 .
|
decoded_shape
|
A Tensor of type int64 .
|
log_probability
|
A Tensor . Has the same type as inputs .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[[["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 2024-04-26 UTC."],[],[]]