aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/ctc_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/ops/ctc_ops.py')
-rw-r--r--tensorflow/python/ops/ctc_ops.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/python/ops/ctc_ops.py b/tensorflow/python/ops/ctc_ops.py
index b0a1fc3dd1..ee5b2952f4 100644
--- a/tensorflow/python/ops/ctc_ops.py
+++ b/tensorflow/python/ops/ctc_ops.py
@@ -197,7 +197,7 @@ def ctc_greedy_decoder(inputs, sequence_length, merge_repeated=True):
merge_repeated: Boolean. Default: True.
Returns:
- A tuple `(decoded, log_probabilities)` where
+ A tuple `(decoded, neg_sum_logits)` where
decoded: A single-element list. `decoded[0]`
is an `SparseTensor` containing the decoded outputs s.t.:
`decoded.indices`: Indices matrix `(total_decoded_outputs x 2)`.
@@ -206,8 +206,9 @@ def ctc_greedy_decoder(inputs, sequence_length, merge_repeated=True):
The vector stores the decoded classes.
`decoded.shape`: Shape vector, size `(2)`.
The shape values are: `[batch_size, max_decoded_length]`
- log_probability: A `float` matrix `(batch_size x 1)` containing sequence
- log-probabilities.
+ neg_sum_logits: A `float` matrix `(batch_size x 1)` containing, for the
+ sequence found, the negative of the sum of the greatest logit at each
+ timeframe.
"""
outputs = gen_ctc_ops._ctc_greedy_decoder(
inputs, sequence_length, merge_repeated=merge_repeated)