gpu转cpu. model = ModelArch(para) # 网络结构. model = torch.nn.DataParallel(model, device_ids=[0]).cuda() # 将model转为gpu模式.
確定! 回上一頁