Skip to content

[Quantization] Fix get_qnn_qdq_config to use new scale/zp np.array data types - #19114

Merged
adrianlizarraga merged 1 commit into
mainfrom
adrianl/fix-qnn-quant-config
Jan 13, 2024
Merged

[Quantization] Fix get_qnn_qdq_config to use new scale/zp np.array data types#19114
adrianlizarraga merged 1 commit into
mainfrom
adrianl/fix-qnn-quant-config

Conversation

@adrianlizarraga

@adrianlizarraga adrianlizarraga commented Jan 12, 2024

Copy link
Copy Markdown
Contributor

Description

  • Updates get_qnn_qdq_config() to use new scale/zp np.array data types.
  • Adds missing unit test to help prevent future regression.

Motivation and Context

#18043 changed the usage of extra_options["TensorQuantizationOverrides"]. We need to update its use in quantization/execution_providers/qnn/quant_config.py

@adrianlizarraga

adrianlizarraga commented Jan 12, 2024

Copy link
Copy Markdown
Contributor Author

@yufenglee @xadupre Just letting you know about this regression. Added a unit test to help catch future issues (I should have added it initially).

@xadupre

xadupre commented Jan 12, 2024 via email

Copy link
Copy Markdown
Member

@adrianlizarraga

Copy link
Copy Markdown
Contributor Author

Thanks. Sorry if i missed some places where numpy types are missing. I did that change to make it easier to carry information about the weight type and quantized type to be able to handle more weight types and more quantized types in the future.

No worries, I really should have added more/better tests in the first place :)

@adrianlizarraga
adrianlizarraga merged commit 8deeba3 into main Jan 13, 2024
@adrianlizarraga
adrianlizarraga deleted the adrianl/fix-qnn-quant-config branch January 13, 2024 01:02
mszhanyi pushed a commit that referenced this pull request Jan 15, 2024
…ta types (#19114)

### Description
- Updates `get_qnn_qdq_config()` to use new scale/zp np.array data
types.
- Adds missing unit test to help prevent future regression.



### Motivation and Context
#18043 changed the usage of
`extra_options["TensorQuantizationOverrides"]`. We need to update its
use in quantization/execution_providers/qnn/quant_config.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants