•
pytorch-doc-2.5中文文档
首页
/
pytorch文档
/
torch.cuda.current_device()
torch.cuda.current_device
torch.cuda.
current_device
(
)
[源代码]
返回当前选定设备的索引。
返回类型
int
本页目录