model = torch.load("model_27_0.81.pth",DEVICE)
时间: 2024-05-23 12:14:42 浏览: 109
torch.cuda.is_available()返回False解决方案
5星 · 资源好评率100%
As an AI language model, I don't have access to your local files. However, assuming that you have a PyTorch model saved in a file named "model_27_0.81.pth" and you have defined your device as "DEVICE", running the above code will load the saved model onto the specified device.
阅读全文