# tf.contrib.seq2seq.hardmax

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py#L2081-L2100) |

Returns batched one-hot vectors.

    tf.contrib.seq2seq.hardmax(
        logits, name=None
    )

The depth index containing the `1` is that of the maximum logit value.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `logits` | A batch tensor of logit values. |
| `name` | Name to use when creating ops. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A batched one-hot tensor. ||

<br />