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

[Fix bug] fix the error of fake_quant_dequant op name #32866

Merged

Conversation

juncaipeng
Copy link
Contributor

@juncaipeng juncaipeng commented May 12, 2021

PR types

Bug fixes

PR changes

Others

Describe

fix the error of fake_quant_dequant op name

动态图量化训练:

  • 如果权重使用channel_wise_abs_max方式,产出的量化模型中原本量化的op会有skip_quant属性,导致部署时所有量化op依旧执行fp32 kernel;
  • 如果权重使用abs_max方式,不会有上述问题。
  • 权重使用abs_max和channel_wise_abs_max方式,精度基本相同。

在动态图量化训练功能,本PR修复判断的op名字,修复上述问题。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@juncaipeng juncaipeng merged commit 24ffcd0 into PaddlePaddle:develop May 12, 2021
@juncaipeng juncaipeng deleted the fix_quant_dequant_ops_error branch May 12, 2021 13:20
juncaipeng added a commit to juncaipeng/Paddle that referenced this pull request May 12, 2021
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