下载
中文
注册

GetCurrentPlatformInfo

函数功能

获取NPU平台信息,包括昇腾AI处理器型号、参数等信息。

函数原型

const PlatformInfo &GetCurrentPlatformInfo()

参数说明

返回值说明

返回PlatformInfo。

约束说明

调用示例

// 获取当前平台信息
void func() {
    const PlatformInfo npuInfo = GetCurrentPlatformInfo();
}