List of Common APIs
This section describes the common meta APIs required for calling the APIs of the NN, fusion, and DVPP operators for creating aclTensor, aclScalar, and aclIntArray objects. For details about the dependent header files and library files, see Table 1.
API |
Function |
|---|---|
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 aclTensorList. The tensors in the aclTensorList 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 device memory address originally recorded in the aclTensor. |
|
Obtains the size of the aclScalarList. |
|
Obtains the StorageShape of the aclTensor. |
|
Obtains the size of the aclTensorList. |
|
Obtains the ViewOffset of the aclTensor, that is, the offset corresponding to ViewShape. |
|
Obtains the ViewShape of the aclTensor. |
|
Obtains ViewStrides of the 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. |
|
Updates the device memory address originally recorded in the aclTensor. |
|
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 |
Reserved APIs. You can ignore them. |
AclSetOutputTensorAddr |
|
AclSetDynamicInputTensorAddr |
|
AclSetDynamicOutputTensorAddr |
|
AclSetTensorAddr |
|
AclSetDynamicTensorAddr |