将由GPU保存的模型加载到GPU上。确保对输入的tensors调用input = input.to(device)方法。 device = torch.device("cuda") model = TheModelClass ...
確定! 回上一頁