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 the inference using QNN EP, I get initialization errors (below) which seems to originate from unsupported BatchNormalization operation. According to QNN docs and ONNX-QNN EP docs, this operation is supported. The model quantization uses int8 precision for all ops.
The model is trained in Tensorflow 2, then converted to ONNX using TF2ONNX, the unsupported op corresponds to tf.keras.layers.BatchNormalization().
Please enable verbose log to get more details. Search Validation FAILED from the detailed log. You should be able to see the reason why it failed for op validation.
When I try to run the inference using QNN EP, I get initialization errors (below) which seems to originate from unsupported BatchNormalization operation. According to QNN docs and ONNX-QNN EP docs, this operation is supported. The model quantization uses int8 precision for all ops.
The model is trained in Tensorflow 2, then converted to ONNX using TF2ONNX, the unsupported op corresponds to tf.keras.layers.BatchNormalization().
Framework ONNX 1.19.0
Unsupported nodes in QNN EP: { name: StatefulPartitionedCall/model_v23_1/dec06/batch_normalization_96/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec05/batch_normalization_95/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec04/batch_normalization_94/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec03/batch_normalization_93/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec02/batch_normalization_92/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec01/batch_normalization_91/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/hdec06/batch_normalization_103/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/hdec05/batch_normalization_102/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/m
Unsupported nodes in QNN EP: { name: StatefulPartitionedCall/model_v23_1/dec06/batch_normalization_96/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec05/batch_normalization_95/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec04/batch_normalization_94/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec03/batch_normalization_93/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec02/batch_normalization_92/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/dec01/batch_normalization_91/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/hdec06/batch_normalization_103/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/model_v23_1/hdec05/batch_normalization_102/FusedBatchNormV3, type: BatchNormalization }{ name: StatefulPartitionedCall/m
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (163 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (105315 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (11229 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (9276 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (2400 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (3659 us)
Starting stage: Completion
Completed stage: Completion (177 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (80 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (3869 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (734 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (221 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (45 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (129 us)
Starting stage: Completion
Completed stage: Completion (10 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (69 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (3580 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (773 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (289 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (55 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (139 us)
Starting stage: Completion
Completed stage: Completion (9 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (71 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (3314 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (718 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (362 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (46 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (120 us)
Starting stage: Completion
Completed stage: Completion (8 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (100 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (3117 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (663 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (322 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (177 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (325 us)
Starting stage: Completion
Completed stage: Completion (40 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (176 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (6223 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (2188 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (1029 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (116 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (273 us)
Starting stage: Completion
Completed stage: Completion (19 us)
Starting stage: Graph Preparation Initializing
Completed stage: Graph Preparation Initializing (325 us)
Starting stage: Graph Transformations and Optimizations
Completed stage: Graph Transformations and Optimizations (14867 us)
Starting stage: Graph Sequencing for Target
Completed stage: Graph Sequencing for Target (7283 us)
Starting stage: VTCM Allocation
Completed stage: VTCM Allocation (2453 us)
Starting stage: Parallelization Optimization
Completed stage: Parallelization Optimization (380 us)
Starting stage: Finalizing Graph Sequence
Completed stage: Finalizing Graph Sequence (616 us)
Starting stage: Completion
Completed stage: Completion (37 us)
This session contains graph nodes that are assigned to the default CPU EP, but fallback to CPU EP has been explicitly disabled by the user.
Skip invalid vtcm_mb: 0
failed to initialize onnx model
The text was updated successfully, but these errors were encountered: