aclrtCreateBinary

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

Creates data of the aclrtBinary type. This data type is used to describe the binary information of an operator. The operator is a custom operator developed using the Ascend C language.

To destroy data of the aclrtBinary type, call aclrtDestroyBinary.

Prototype

aclrtBinary aclrtCreateBinary(const void *data, size_t dataLen)

Parameters

Parameter

Input/Output

Description

data

Input

Pointer to the memory address for storing the binary file (*.o file) data of the operator.

Allocate memory on the host or device based on where the application runs. For details about the memory allocation APIs, see Memory Management.

dataLen

Input

Memory size, in bytes

Returns

Pointer to data of the aclrtBinary type.