aclopLoad
Applicability
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Description
Loads the single-operator model data from the memory. The memory is managed by the user. The "single-operator model data" refers to the data that is loaded to the memory from the single-operator .om file.
Prototype
aclError aclopLoad(const void *model, size_t modelSize)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
model |
Input |
Pointer to the memory address of the single-operator model data. |
|
modelSize |
Input |
Size of the model data in the memory, in bytes. |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
- In the dynamic-shape operator scenario and Ascend virtual instance scenario, the operator library version in the model file loading environment must be the same as that in the model build environment. Otherwise, an error is reported when the operator is loaded.
You can check the operator library version by viewing the version field in the ${INSTALL_DIR}/opp/version.info file.
Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.
- Before loading, check whether the memory space is sufficient based on the size of the single-operator .om file. If the memory space is insufficient, the app will be abnormal.
Model
Max Operators Being Executed in a Process
Atlas inference products 40,000,000 in
Ascend EP formAtlas 200I/500 A2 inference products Atlas training products 40,000,000
Atlas A3 training products /Atlas A3 inference products Atlas A2 training products /Atlas A2 inference products 2,000,000