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 bug in computing output size of IdentityOffsetProjection #4825

Conversation

pengli09
Copy link
Contributor

@pengli09 pengli09 commented Oct 16, 2017

The output size of IdentityOffsetProjection depends on the size of the outer MixedLayer. And the same instance of IdentityOffsetProjection may serve as input for multiple MixedLayer with different sizes. Therefore, the output size of IdentityOffsetProjection should be set as 0.

原理是IdentityOffsetProjection的size要由外层的mixed layer决定,而且同一个IdentityOffsetProjection可能会用在不同的mixed layer里,所以size是没法预先算出的,因而要设成0.

@pengli09 pengli09 requested a review from luotao1 October 16, 2017 06:54
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

@pengli09 pengli09 merged commit 436c0e0 into PaddlePaddle:develop Oct 16, 2017
@pengli09 pengli09 deleted the fix-bug-in-identity-offset-projection-output-size branch October 16, 2017 10:58
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.

None yet

2 participants