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 bugs for CrossChannelNormLayer #2247

Merged
merged 3 commits into from
Jul 5, 2017
Merged

Conversation

pkuyym
Copy link
Contributor

@pkuyym pkuyym commented May 24, 2017

fixes #2240

@@ -63,6 +73,7 @@ void CrossChannelNormLayer::forward(PassType passType) {

// compute norm.
spatialBuffer_->sumCols(*dataTmp, 1, 0);
spatialBuffer_->add(*normTmp);
Copy link
Contributor

Choose a reason for hiding this comment

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

spatialBuffer_->add(1e-6);

删掉66行, 更容易理解些~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@pkuyym pkuyym requested review from luotao1 and removed request for wangyang59 May 25, 2017 06:12
@pkuyym pkuyym merged commit f21e3f7 into PaddlePaddle:develop Jul 5, 2017
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.

Abnormal diff of gradients in unitest for CrossChannelNormLayer
2 participants