Hi,
Can we code a classification without onehot encoding, for example;
x, y = dataloader() ##Load input x and label y(integer scalar)
out = model()
z = round(out) ##Rounding scalar "out" to integer scalar "z"
loss = criteria(z, y)

If this is possible, how we treat back prop on the rounding?