aclrtBinaryLoad

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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. The operator is a custom operator developed using the Ascend C language.

Prototype

aclError aclrtBinaryLoad(const aclrtBinary binary, aclrtBinHandle *binHandle)

Parameters

Parameter

Input/Output

Description

binary

Input

Binary information of the operator.

First call aclrtCreateBinary to obtain the pointer to the aclrtBinary data.

binHandle

Output

Handle pointing to the binary.

Returns

0 on success; else, failure. For details, see aclError.