GetCurrentPlatformInfo

Function Usage

Obtains NPU platform information, including the Ascend AI Processor model and parameters.

Prototype

const PlatformInfo &GetCurrentPlatformInfo()

Parameters

None

Returns

Platform information.

Constraints

None

Example

1
2
3
4
// Obtain the current platform information.
void func() {
    const PlatformInfo npuInfo = GetCurrentPlatformInfo();
}