Fix v2_API equation for img_pool and maxout format.#6392
Merged
chengduoZH merged 2 commits intoPaddlePaddle:developfrom Dec 8, 2017
Merged
Fix v2_API equation for img_pool and maxout format.#6392chengduoZH merged 2 commits intoPaddlePaddle:developfrom
chengduoZH merged 2 commits intoPaddlePaddle:developfrom
Conversation
57302f3 to
7516671
Compare
Contributor
|
Please paste the current format of the equation, thanks! |
7516671 to
93563ef
Compare
Contributor
Author
luotao1
reviewed
Dec 8, 2017
|
|
||
| w = 1 + int(ceil(input\_width + 2 * padding - pool\_size) / float(stride)) | ||
| w = 1 + int(ceil(input\_width + 2 * padding - pool\_size) / float(stride)) \\\\ | ||
| h = 1 + int(ceil(input\_height + 2 * padding\_y - pool\_size\_y) / float(stride\_y)) |
Contributor
There was a problem hiding this comment.
作为公式的话,int, float是不是去掉,ceil换成对应的取整符号,/变成上下除的格式,显示时会更好看点。
201875d to
f38a975
Compare
f38a975 to
3c84444
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

fix #6393
Currently, the format of equation for img_pool and maxout is very messy.
paddle.v2.layer.img_pool
paddle.v2.layer.maxout