(beta)c10_npu::getCurrentNPUStream
定义文件
torch_npu\csrc\core\npu\NPUStream.h
函数原型
[object Object]
功能说明
获取当前NPU流,返回值类型NPUStream,与c10::CUDA::CUDAStream c10::CUDA::getCurrentCUDAStream(c10::DeviceIndex device_index = -1)相同。
参数说明
device_index:DeviceIndex类型,获取流的NPU设备id。
支持的型号
- [object Object]Atlas 训练系列产品[object Object]
- [object Object]Atlas A2 训练系列产品[object Object]
- [object Object]Atlas A3 训练系列产品[object Object]
- [object Object]Atlas 推理系列产品[object Object]