you can find now one_hot and focal loss implementations in torchgeometry:
https://torchgeometry.readthedocs.io/en/latest/losses.html#torchgeometry.losses.one_hot 159
https://torchgeometry.readthedocs.io/en/latest/losses.html#torchgeometry.losses.FocalLoss 566