评价此页

torch.mps.device_count#

torch.mps.device_count()[源代码]#

返回可用的 MPS 设备数量。

返回类型

int