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

[quant] Add quant wrap for functional api and refine the qat #33162

Merged
merged 9 commits into from
Jun 9, 2021

Conversation

juncaipeng
Copy link
Contributor

@juncaipeng juncaipeng commented May 27, 2021

PR types

Others

PR changes

Others

Describe

  • Add layer wrapper for functional api
  • Refine dygraph qat
    • For conv2d and linear, apply fake quant to the inputs
    • For the ops of which the output scale is different from the input scale, apply fake quant to the outputs
    • For the ops of which the output scale is the same as the input scale, calculate the moving average threshold of the outputs

@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 changed the title [quant] Add quant wrap for functional api [quant] Add quant wrap for functional api and refine the qat Jun 2, 2021
Copy link
Contributor

@DannyIsFunny DannyIsFunny left a comment

Choose a reason for hiding this comment

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

LGTM

@juncaipeng juncaipeng merged commit ddc95a0 into PaddlePaddle:develop Jun 9, 2021
@juncaipeng juncaipeng deleted the add_quant_functional branch June 9, 2021 02:23
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.

3 participants