# tf.raw_ops.CTCGreedyDecoder

<br />

Performs greedy decoding on the logits given in inputs.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.CTCGreedyDecoder`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/CTCGreedyDecoder)

<br />

    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.

<br />

<br />

<br />

| ## 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). |

<br />

<br />

| ## 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`. |

<br />