File QnnSystemTensor.h¶
↰ Parent directory (include/QNN/System)
QNN System Tensor API.
Contents
Definition (include/QNN/System/QnnSystemTensor.h)¶
Detailed Description¶
This is a system API header dedicated to extensions to QnnTensor that provide backend-agnostic services to users.
Includes¶
QnnTypes.h(File QnnTypes.h)System/QnnSystemCommon.h(File QnnSystemCommon.h)
Included By¶
Full File Listing¶
QNN System Tensor API.
This is a system API header dedicated to extensions to QnnTensor
that provide backend-agnostic services to users.
Enums
-
enum QnnSystemTensor_Error_t¶
QNN System Tensor API result / error codes.
Values:
-
enumerator QNN_SYSTEM_TENSOR_MIN_ERROR = 30000¶
-
enumerator QNN_SYSTEM_TENSOR_NO_ERROR = QNN_SYSTEM_COMMON_NO_ERROR¶
Qnn System Tensor success.
-
enumerator QNN_SYSTEM_TENSOR_ERROR_UNSUPPORTED_FEATURE = QNN_COMMON_ERROR_NOT_SUPPORTED¶
Qnn System Tensor API is not supported yet.
-
enumerator QNN_SYSTEM_TENSOR_ERROR_INVALID_ARGUMENT = QNN_SYSTEM_COMMON_ERROR_INVALID_ARGUMENT¶
One or more arguments to a System Tensor API is/are NULL/invalid.
-
enumerator QNN_SYSTEM_TENSOR_ERROR_INVALID_TENSOR = QNN_SYSTEM_TENSOR_MIN_ERROR + 2¶
A Qnn_Tensor_t data structure in invalid.
-
enumerator QNN_SYSTEM_TENSOR_MAX_ERROR = 49999¶
-
enumerator QNN_SYSTEM_TENSOR_MIN_ERROR = 30000¶
Functions
-
Qnn_ErrorHandle_t QnnSystemTensor_getMemoryFootprint(Qnn_Tensor_t tensor, uint64_t *footprint)¶
A function to compute the maximum amount of memory in bytes required to contain tensor data. Currently supported data formats are:
QNN_DATA_FORMAT_DENSE
- Parameters
tensor – [in] A Qnn_Tensor_t data structure.
footprint – [out] The maximum amount of memory required to fully contain tensor data.
- Returns
Error code
QNN_SUCCESS: Successfully compute the tensor memory extent
QNN_SYSTEM_TENSOR_ERROR_INVALID_ARGUMENT: extent is NULL
QNN_SYSTEM_TENSOR_ERROR_INVALID_TENSOR: tensor is ill-configured
QNN_SYSTEM_TENSOR_ERROR_UNSUPPORTED_FEATURE: this API is not supported yet