mixmo.utils.torchutils.onehot

mixmo.utils.torchutils.onehot(size, target)[source]

Translate scalar targets to one hot vectors