aclrtBinaryLoad

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

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 here is a custom operator developed by using Ascend C.

Prototype

1
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. For details about the type definition, see aclrtBinHandle.

Returns

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