You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run inference using QNN EP, I get initialization errors (below) which seems to originate from unsupported operations: BatchNormalization, Sqrt, and Reciprocal. According to QNN docs and ONNX-QNN EP docs, these operations are supported (in QNN docs Reciprocal and Div maps to the same operation ElementWiseDivide). The model quantization uses int8 precision for all ops.
The model is trained in Tensorflow 2, then converted to ONNX using TF2ONNX, the unsupported ops correspond to tf.keras.layers.BatchNormalization() and tf.nn.l2_normalize().
Framework ONNX 1.19.0
QNN.backendValidateOpConfig() failed for node StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt of type ElementWiseSquareRoot with error code 3110
QNN.backendValidateOpConfig() failed for node StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt of type ElementWiseSquareRoot with error code 3110
QNN.backendValidateOpConfig() failed for node StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt of type ElementWiseSquareRoot with error code 3110
Reciprocal:
Validation FAILED for nodes (NodeUnit):
Operator type: Reciprocal Node name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt__274 Node index: 531
REASON : qnn_node_group.cc:39 onnxruntime::qnn::QnnNodeUnitWrapper::IsSupported Operators of type Reciprocal are not supported by QNN EP.Reciprocal node StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt__274 will not be assigned to QNN EP.
When I try to run inference using QNN EP, I get initialization errors (below) which seems to originate from unsupported operations: BatchNormalization, Sqrt, and Reciprocal. According to QNN docs and ONNX-QNN EP docs, these operations are supported (in QNN docs Reciprocal and Div maps to the same operation ElementWiseDivide). The model quantization uses int8 precision for all ops.
The model is trained in Tensorflow 2, then converted to ONNX using TF2ONNX, the unsupported ops correspond to tf.keras.layers.BatchNormalization() and tf.nn.l2_normalize().
Framework ONNX 1.19.0
QNN.backendValidateOpConfig() failed for node
StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt
of typeElementWiseSquareRoot
with error code 3110QNN.backendValidateOpConfig() failed for node
StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt
of typeElementWiseSquareRoot
with error code 3110Unsupported nodes in QNN EP: { name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt, type: Sqrt }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt, type: Sqrt }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt__274, type: Reciprocal }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt__317, type: Reciprocal }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec07_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec06_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec05_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec04_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19
QNN.backendValidateOpConfig() failed for node
StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt
of typeElementWiseSquareRoot
with error code 3110QNN.backendValidateOpConfig() failed for node
StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt
of typeElementWiseSquareRoot
with error code 3110Unsupported nodes in QNN EP: { name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt, type: Sqrt }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt, type: Sqrt }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize_1/Rsqrt__274, type: Reciprocal }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/align/l2_normalize/Rsqrt__317, type: Reciprocal }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec07_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec06_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec05_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19o/dec04_bn/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v203h2d_combined_r_t20i19
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (443 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (44459 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (3326 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (4740 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (506 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (1060 us)
Starting stage: Completion
Completed stage: Completion (49 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (75 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (240 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (164 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (16 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (12 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (33 us)
Starting stage: Completion
Completed stage: Completion (4 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (159 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (397 us)
Failed to finalize QNN graph.
Skip invalid vtcm_mb: 0
failed to initialize onnx model
The text was updated successfully, but these errors were encountered: