pytorch官网提供的只有参数
如果直接load模型print只有参数
import torch
import torchvision.models as models
# pretrained=True 使用预训练的模型
net = models.resnet101(pretrained=False)
pthfile = 'resnet101-5d3b4d8f.pth'
net.load_state_dict(torch.load(pthfile))
print(net)
print出来就是网络模型