Function: load
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Loads the single-operator model data from the memory. The memory is managed by the user.
Prototype
- C Prototype
1aclError aclopLoad(const void *model, size_t modelSize)
- Python Function
1ret = acl.op.load(model, model_size)
Parameters
|
Parameter |
Description |
|---|---|
|
model |
Int, address object of the single-operator model data. |
|
model_size |
Int, length of the model data in the memory, in bytes. |
Returns
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
Before loading, check whether the memory is sufficient based on the size of the operator OM file. If the memory is insufficient, the application will malfunction.
For the
For the
For the
For the
For the