Looking at the output of Net(), it seems the output shape is [N, num_classes].
This means your label must be of size [N] such that each entries in label spans between 0 to N-1.
Does the label satisfy the above requirements ?