tfa.seq2seq.hardmax

Returns batched one-hot vectors.

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

logitsA batch tensor of logit values.
nameName to use when creating ops.

A batched one-hot tensor.