-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 v2_API equation for img_pool and maxout format. #6392
Fix v2_API equation for img_pool and maxout format. #6392
Conversation
57302f3
to
7516671
Compare
Please paste the current format of the equation, thanks! |
7516671
to
93563ef
Compare
@@ -2722,14 +2722,14 @@ def img_pool_layer(input, | |||
|
|||
.. math:: | |||
|
|||
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
作为公式的话,int, float是不是去掉,ceil换成对应的取整符号,/
变成上下除的格式,显示时会更好看点。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
201875d
to
f38a975
Compare
f38a975
to
3c84444
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fix #6393
Currently, the format of equation for img_pool and maxout is very messy.
paddle.v2.layer.img_pool
paddle.v2.layer.maxout