one_hot_argmax#

sdm.prior.one_hot_argmax(x: Tensor) → Tensor#

One-hot encode the argmax along the last dimension.

Ties select the first maximum.

Parameters:

x (Tensor)

Return type:

Tensor