import torch from torch import nn print(torch.device('cpu')) print(torch.cuda.device_count())
Ausgabe:
CPU 0
über