Basic APIs
API |
Function Usage |
|---|---|
Initializes aclnn before any aclnn API is called. It is the initialization API of the single-operator API execution framework. |
|
Deinitializes the single-operator API execution framework. |
|
Creates an aclBoolArray. |
|
Creates an aclFloatArray. |
|
Creates an aclIntArray. |
|
Creates an aclScalar. |
|
Creates an aclScalarList. |
|
Creates an aclTensor. |
|
Creates an aclTensorList. |
|
Destroys a reusable aclOpExecutor. |
|
Destroys the created aclBoolArray. |
|
Destroys the created aclFloatArray. |
|
Destroys the created aclIntArray. |
|
Destroys the created aclScalar. |
|
Destroys the created aclScalarList. The scalars in the aclScalarList do not need to be destroyed again. |
|
Destroys the created aclTensor. |
|
Destroys the created aclTensor list. The tensors in the aclTensor list do not need to be destroyed again. |
|
Obtains the size of the aclBoolArray. |
|
Obtains the data type of the aclTensor. |
|
Obtains the size of the aclFloatArray. |
|
Obtains the format of the aclTensor. |
|
Obtains the size of the aclIntArray. |
|
Obtains the size of the aclScalarList. |
|
Obtains the StorageShape of an aclTensor. |
|
Obtains the size of the aclTensorList. |
|
Obtains the ViewOffset of the aclTensor, that is, the offset corresponding to ViewShape. |
|
Obtains the ViewShape of an aclTensor. |
|
Obtains ViewStrides of an aclTensor, that is, the stride corresponding to ViewShape. |
|
Initializes the parameters of a given tensor. |
|
Enables aclOpExecutor to be reusable. |
|
After aclOpExecutor reuse is enabled, if the input device memory address changes, the device memory address recorded in the input aclTensorList needs to be updated. |
|
After aclOpExecutor reuse is enabled, if the output device memory address changes, the device memory address recorded in the output aclTensorList needs to be updated. |
|
After aclOpExecutor reuse is enabled, if the input or output device memory address changes, the device memory address recorded in the corresponding aclTensorList needs to be updated. |
|
After aclOpExecutor reuse is enabled, if the input device memory address changes, the device memory address recorded in the input aclTensor needs to be updated. |
|
After aclOpExecutor reuse is enabled, if the output device memory address changes, the device memory address recorded in the output aclTensor needs to be updated. |
|
After aclOpExecutor reuse is enabled, if the input or output device memory address changes, the device memory address recorded in the corresponding aclTensor needs to be updated. |
|
AclSetInputTensorAddr |
This API is reserved and developers can ignore it. |
AclSetOutputTensorAddr |
|
AclSetDynamicInputTensorAddr |
|
AclSetDynamicOutputTensorAddr |
|
AclSetTensorAddr |
|
AclSetDynamicTensorAddr |