获取NPU平台信息,包括昇腾AI处理器型号、参数等信息。
const PlatformInfo &GetCurrentPlatformInfo()
无
返回PlatformInfo。
1 2 3 4
// 获取当前平台信息 void func() { const PlatformInfo npuInfo = GetCurrentPlatformInfo(); }