# 确定设备为GPU
num_gpus = torch.cuda.device_count()
target_gpu_id = None
for gpu_id in range(num_gpus):
gpu_props = torch.cuda.get_device_properties(gpu_id)
if gpu_props
05-17
05-17
05-17
# 确定设备为GPU
num_gpus = torch.cuda.device_count()
target_gpu_id = None
for gpu_id in range(num_gpus):
gpu_props = torch.cuda.get_device_properties(gpu_id)
if gpu_props