🌈 搜索
📅  最后修改于: 2022-03-11 14:48:10.136000             🧑  作者: Mango
import torch available_gpus = [torch.cuda.device(i) for i in range(torch.cuda.device_count())] available_gpus #[]