🌈 搜索
📅  最后修改于: 2022-03-11 14:45:06.232000             🧑  作者: Mango
device = "cuda" if torch.cuda.is_available() else "cpu" model.to(device)