Skip to content

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