后面兩行代碼在我這不行啊恃慧, 是不是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:云服務(wù)中加載VGG19等模型之前在本地使用VGG19預(yù)訓(xùn)練模型派昧,可以手動下載.pth文件到本地.chche中,之后再使用torchvision.models.vgg19(pretrained = Tru...