aclopLoad
Applicable Products
Product |
Supported |
|---|---|
× |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
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
1 | 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 in the memory, in bytes |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
The operator package version in the model loading environment must match the version used in the model building environment. Otherwise, an error is reported during operator loading. 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.
- For the
Ascend 950PR /Ascend 950DT ,Atlas A3 training products /Atlas A3 inference products , andAtlas A2 training products /Atlas A2 inference products , the limit is 2,000,000. - For the
Atlas 200I/500 A2 inference products andAtlas training products , the limit is 40,000,000. - For the
Atlas inference products , the limit is 40,000,000 inAscend EP form and is 2,000,000 in Open Ctrl CPU form.