aclrtRegisterCpuFunc
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Registers an AI CPU operator to obtain funcHandle when calling aclrtBinaryLoadFromData to load operator binary data of AI CPU.
This API is only used for AI CPU operators. It will return ACL_ERROR_RT_PARAM_INVALID for other operators.
Prototype
1 | aclError aclrtRegisterCpuFunc(const aclrtBinHandle handle, const char *funcName, const char *kernelName, aclrtFuncHandle *funcHandle) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
handle |
Input |
Operator binary handle. For details about the type definition, see aclrtBinHandle. Call aclrtBinaryLoadFromData to obtain the operator binary handle, and pass it as an input parameter. |
funcName |
Input |
Entry function for executing the AI CPU operator. The value cannot be null. |
kernelName |
Input |
opType of the AI CPU operator. The value cannot be null. |
funcHandle |
Output |
Function handle. For details about the type definition, see aclrtFuncHandle. |
Returns
0 on success; otherwise, failure. For details, see aclError.