torch_npu\csrc\core\npu\NPUFunctions.h
c10::DeviceIndex c10_npu::device_count()
获取可使用的NPU数量,返回值类型DeviceIndex。