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

Ignoring Gemm -> Q/Dq -> Softmax in GemmToQLinearMatMul transform #1343

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

corey-nm
Copy link
Contributor

@corey-nm corey-nm commented Jan 26, 2023

When there is a Softmax after a MatMul, this pass improperly assumes the Q/Dq is for itself, rather than for the softmax.

Original quantized graph

image

Current deepsparse graph from exporters

image

Note that this is invalid!!

deepsparse graph after this PR

image

@rahul-tuli rahul-tuli self-requested a review January 26, 2023 19:17
@corey-nm corey-nm merged commit ba84f56 into main Jan 26, 2023
@corey-nm corey-nm deleted the skip-gemm-qdq-softmax branch January 26, 2023 19:37
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.

None yet

3 participants