Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QNN] Enable constant folding for QNN operations #11210

Closed
wants to merge 1 commit into from

Conversation

ibsidorenko
Copy link
Contributor

This PR is an attempt to revive PR#9164 . It enables folding of constants for QNN operations. Motivation to have this feature is BYOC use cases.

One important thing: for the case when we call FoldConstant before FakeQuantizationToInteger pass, we can prevent FQ2I from converting some ops to qnn equivalent. To avoid this, callback argument was added in FoldConstant pass that allows to skip expressions from folding.

Co-authored-by: Alexander Peskov peskovnn@gmail.com

Co-authored-by: Alexander Peskov <peskovnn@gmail.com>
@ibsidorenko ibsidorenko closed this May 5, 2022
@ibsidorenko ibsidorenko deleted the fold-qnn-const branch May 18, 2022 07:05
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.

1 participant