torch.cpu.current_device¶ torch.cpu.current_device()[源代码][源代码]¶ 返回 cpu 的当前设备。始终为 ‘cpu’。 注意:此功能的存在仅为方便设备无关代码 返回类型 str