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

[Pass] fix quant_dequant_fuse_pass when there is no dequant op before weight #10093

Merged
merged 5 commits into from
Mar 16, 2023
Merged

[Pass] fix quant_dequant_fuse_pass when there is no dequant op before weight #10093

merged 5 commits into from
Mar 16, 2023

Conversation

mjp9527
Copy link
Collaborator

@mjp9527 mjp9527 commented Mar 13, 2023

PR devices

others

PR types

Bug fixes

PR changes

PASS

Description

fix quant_dequant_fuse_pass when there is no dequant op before weight

@paddle-bot
Copy link

paddle-bot bot commented Mar 13, 2023

Thanks for your contribution!

bool enable_int8_cond = false;
for (auto& inlink_node : quantized_node->inlinks) {
enable_int8_cond = true;
// no op before weight
Copy link
Collaborator

@hong19860320 hong19860320 Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议加上类似

/* fuse logit block: y=log(x/(1-x)),inverse function of sigmoid */
示意图

Copy link
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hong19860320 hong19860320 merged commit 4ee3f6d into PaddlePaddle:develop Mar 16, 2023
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.

2 participants