size mismatch for classifier.4.weight

raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Net:
size mismatch for classifier.4.weight: copying a param with shape torch.Size([1, 256]) from checkpoint, the shape in current model is torch.Size([751, 256]).
size mismatch for classifier.4.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([751]).

应该是权重参数不匹配问题。
参考这篇文章

你好,我也遇到同样的问题,请问你解决了吗?