首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
Pytorch GPU
Pytorch GPU
mac
2022-06-30
44
https://www.cnblogs.com/QingHuan/p/10016959.html
net = Net() if torch.cuda.is_available(): print("Using GPU") device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") net.to(device)
转载请注明原文地址: https://mac.8miu.com/read-56504.html
最新回复
(
0
)