Core
Function
AI Core abstraction, which is instantiated and used in the with statement to model an AI Core type.
Prototype
1 | class Core(core_type_name) |
Parameters
Parameter |
Input Type |
Description |
|---|---|---|
core_type_name |
string |
Character string of the Ascend compute unit type, which can be expressed as AICx or AIVx, where x is a number that corresponds to the sequence number of the used AI Cube Core/AI Vector Core. Only one or more characters of A-Za-z0-9 are supported. |
Constraints
This class needs to be initialized under the with statement.
Example
1 2 3 4 | from mskpp import Core with Core("AIC0") as aic: # Code related to the operator compute logic on AI Cube Core 0. ... |
Parent topic: Description of msKPP External APIs