Why are we not one hot encoding the Y value for feedforward network with pytorch

Why we are not one-hot encoding the Y value for the feedforward network with PyTorch

The output labels, Y (multi-class) can be taken care of differently, for example by having a softmax associate different probabilities with each possible class.(without explicitly encoding Y).

But, I guess, you can always encode Y’s if it helps your model design.