device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") model.to(device) 這兩行代碼放在讀取數據之前。 mytensor = my_.
確定! 回上一頁