GetCurrentPlatformInfo
函数功能
获取NPU平台信息,包括昇腾AI处理器型号、参数等信息。
函数原型
const PlatformInfo &GetCurrentPlatformInfo()
参数说明
无
返回值说明
返回PlatformInfo。
约束说明
无
调用示例
1 2 3 4 | // 获取当前平台信息 void func() { const PlatformInfo npuInfo = GetCurrentPlatformInfo(); } |
父主题: platform