Function QnnBackend_validateOpConfig¶
Defined in File QnnBackend.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnBackend_validateOpConfig(Qnn_BackendHandle_t backend, Qnn_OpConfig_t opConfig)¶
A method to validate op config with an appropriate op package This is a wrapper API around the actual OpPackage interface method that performs op validation. Backend may pick an appropriate op package among ones that are registered with it for validation based on the attributes of the op configuration.
- Parameters
backend – [in] A backend handle.
opConfig – [in] Fully qualified struct containing the configuration of the operation.
- Returns
Error code
QNN_SUCCESS if validation is successful
QNN_OP_PACKAGE_ERROR_VALIDATION_FAILURE: op config validation failed
QNN_BACKEND_ERROR_NOT_SUPPORTED: Validation API not supported
QNN_BACKEND_ERROR_OP_PACKAGE_NOT_FOUND: No op package with matching op config attributes found.
QNN_BACKEND_ERROR_INVALID_HANDLE: backend is not a valid handle
Note
inputTensors and outputTensors inside opConfig must be fully qualified for complete validation. However, their IDs (id) and names (name) are ignored during validation.
Note
Use corresponding API through QnnInterface_t.