Function: binary_load
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Parses and loads the operator binary file, outputs binHandle pointing to the operator binary file, and copies the operator binary file data to the device corresponding to the current context. Only Ascend C custom operators are supported.
Prototype
- C Prototype
1aclError aclrtBinaryLoad(const aclrtBinary binary, aclrtBinHandle *binHandle)
- Python Function
1bin_handle, ret= acl.rt.binary_load(binary)
Parameter Description
Parameter |
Description |
|---|---|
binary |
Int, binary information of the operator. You need to call the acl.rt.create_binary API to obtain the pointer to the acl.rt.binary data. |
Return Value Description
Return Value |
Description |
|---|---|
bin_handle |
Int, pointer address of the binary handle. |
ret |
Int, error code: 0 on success; else, failure. |
Parent topic: Kernel Loading and Execution