aclrtBinaryLoad
Description
Parses and loads the operator binary file, outputs the 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
aclError aclrtBinaryLoad(const aclrtBinary binary, aclrtBinHandle *binHandle)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
binary |
Input |
Binary information of the operator. You need to call the aclrtBinaryCreate API to obtain the pointer of the aclrtBinary data. |
binHandle |
Output |
Handle pointing to the binary. typdef void* aclrtBinHandle |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Kernel Loading and Execution