Function: create_binary
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Creates data of the acl.rt.binary type. This data type is used to describe the binary information of an operator. Only Ascend C custom operators are supported.
To destroy data of the acl.rt.binary type, call acl.rt.destroy_binary.
Prototype
- C Prototype
1aclrtBinary aclrtCreateBinary(const void *data, size_t dataLen)
- Python Function
1binary = acl.rt.create_binary(data, data_len)
Parameter Description
Parameter |
Description |
|---|---|
data |
|
data_len |
Int, memory size, in bytes. |
Return Value Description
Return Value |
Description |
|---|---|
binary |
Int, pointer address of the acl.rt.binary type. |
Parent topic: Kernel Loading and Execution