Attend the Women in ML Symposium on December 7 Register now

tfa.seq2seq.hardmax

Stay organized with collections Save and categorize content based on your preferences.

Returns batched one-hot vectors.

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

logits A batch tensor of logit values.
name Name to use when creating ops.

A batched one-hot tensor.