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

Improve fake_dequantize_op. #12877

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Conversation

qingqing01
Copy link
Contributor

@qingqing01 qingqing01 commented Aug 22, 2018

#10693 中的部分代码

auto out_e = framework::EigenVector<T>::Flatten(*out);

auto& dev = *dev_ctx.eigen_device();
out_e.device(dev) = (scale_factor[0] / max_range) * in_e;
Copy link
Contributor

Choose a reason for hiding this comment

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

用把max_range转成T类型么?python单测貌似没加float64的case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

更新了,也增加了float64的单测。

Copy link
Contributor

@wanghaoshuang wanghaoshuang left a comment

Choose a reason for hiding this comment

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

LGTM

@qingqing01 qingqing01 merged commit 0353edd into PaddlePaddle:develop Aug 28, 2018
@qingqing01 qingqing01 deleted the quantize_op_fix branch November 14, 2019 05:24
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