后面两行代码在我这不行啊, 是不是pytorch版本的问题?
RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)
pytorch:云服务中加载VGG19等模型之前在本地使用VGG19预训练模型,可以手动下载.pth文件到本地.chche中,之后再使用torchvision.models.vgg19(pretrained = Tru...