I load Resnet18 net，and reset fc layer nn.Linear(512,100).But,when I  use it to train cifar100, it occur a error:
RuntimeError: Given input size: (512x1x1). Calculated output size: (512x-5x-5). Output size is too small .
This why?and how to solve it? please forgive me,I am stupid