微信扫一扫
import torch device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') print(device)
相关推荐