Myailab:

Isn’t that the ‘output (which is a list of probabilities) of resnet34’ will be 20 as the number of my dataset classes are 20


How does resnet34 know that the number of your data classes is 20?