You should load your model on the GPU device as well: model.to(device). Note, torch.nn.Module.to is an inplace operation.
確定! 回上一頁