Function: load
|
C Prototype |
aclError aclopLoad(const void *model, size_t modelSize) |
|---|---|
|
Python Function |
ret = acl.op.load(model, model_size) |
|
Function Usage |
Loads the single-operator model data from the memory. The memory is managed by the user. |
|
Input Description |
model: int, address object of the single-operator model data. model_size: int, length of the model data in the memory, in bytes. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
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. For the Atlas 200/300/500 Inference Product, when your app runs on the host, a single process can execute up to 40,000,000 operators at a time.when your app runs on the device, a single process can execute up to 2,000,000 operators at a time. For the Atlas Training Series Product, when your app runs on the host, a single process can execute up to 40,000,000 operators at a time. |
|
Reference |
For details about the API call sequence, see Single-Operator Calling. |