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

Refine conv #6455

Merged
merged 3 commits into from
Dec 14, 2017
Merged

Refine conv #6455

merged 3 commits into from
Dec 14, 2017

Conversation

chengduoZH
Copy link
Contributor

@chengduoZH chengduoZH commented Dec 11, 2017

fix #6603

qingqing01
qingqing01 previously approved these changes Dec 14, 2017
@@ -225,7 +225,7 @@ class GemmConvTransposeGradKernel : public framework::OpKernel<T> {

if (input_grad) {
input_grad->mutable_data<T>(context.GetPlace());
set_zero(dev_ctx, input_grad, static_cast<T>(0));
// set_zero is unnecessary, math::matmul will reset input_grad.
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this comments in next PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can change it in this PR.

@chengduoZH chengduoZH merged commit 2a7bc64 into PaddlePaddle:develop Dec 14, 2017
@chengduoZH chengduoZH deleted the refine/conv_zero branch January 29, 2018 07:14
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.

Profiling: In some cases, the zeroing of the argument is unnecessary.
2 participants