GPU-李沐老师

import torch
from torch import nn
print(torch.device('cpu'))

print(torch.cuda.device_count())

输出:

cpu

over

猜你喜欢

转载自blog.csdn.net/qq_45828494/article/details/126652290
今日推荐