Typedef QnnOpPackage_ValidateOpConfigHandleFn_t¶
Defined in File QnnOpPackage.h
Typedef Documentation¶
-
typedef Qnn_ErrorHandle_t (*QnnOpPackage_ValidateOpConfigHandleFn_t)(Qnn_OpPackageHandle_t opPackage, Qnn_OpConfig_t opConfig)¶
Verifies that this op with the specified config can be successfully executed.
- Param opPackage
[in] An op package handle.
- Param opConfig
[in] Op configuration in question.
- Return
error code:
QNN_SUCCESS No error encountered.
QNN_OP_PACKAGE_ERROR_INVALID_HANDLE: opPackage is not a valid handle.
QNN_OP_PACKAGE_ERROR_VALIDATION_FAILURE: op config validation failed
QNN_OP_PACKAGE_ERROR_UNSUPPORTED_FEATURE: Validation API not supported
Note
inputTensors and outputTensors inside opConfig must be fully qualified for complete validation. However, their unique id and name are ignored during validation.