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

Add enabling quantization #16326

Merged
merged 2 commits into from
Mar 21, 2019

Conversation

wojtuss
Copy link

@wojtuss wojtuss commented Mar 20, 2019

This patch adds option to enable cpu_quantize_placement_pass applying quantization strategy.

test=develop

@@ -30,6 +30,10 @@ class PaddlePassBuilder {
explicit PaddlePassBuilder(const std::vector<std::string> &passes)
: passes_(passes) {}

void SetPasses(std::initializer_list<std::string> passes) {
passes_ = passes;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

why use SetPasses? I don't find it used in #15987 as well.

Copy link
Author

Choose a reason for hiding this comment

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

The SetPasses is used in quantizer.cc (https://github.com/PaddlePaddle/Paddle/pull/15987/files?file-filters%5B%5D=.cc#diff-2c882d108544e86a1f517bd247ac68ceR352). I have removed its definition from this PR.

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit cbe2dbf into PaddlePaddle:develop Mar 21, 2019
wojtuss pushed a commit to sfraczek/Paddle that referenced this pull request Mar 21, 2019
* Add enabling quantization

test=develop

* remove unused (here) function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants