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
Padding type definition is swapped in the documentation. #196
Comments
Thanks - the padding documentation definitely needs modification. The padding scheme is not as simple as you mentioned though - it follows some legacy reason which involved some non-trivial padding computations. I'll update the documentation to add the details. For the time being, if you are interested in the the exact math, it is described here: https://github.com/Yangqing/caffe2/blob/master/caffe2/proto/caffe2_legacy.proto#L8 |
Thanks again for reporting this. We have fixed this in our internal codebase and will be pushing it soon. Closing this for now. |
Propose to enrich the document of convolution. It is still quite confusing. I think what cesarsalgado mentioned is correct. |
Could anyone help me to calculate each step output of cifar10 example of tensorflow? |
Hi, Beginner questions are best suited for Stack Overflow, not random semi-related bugs. Please post your question there instead. |
…e-python3 Update tensorflow-quickstart.md
In http://tensorflow.org/api_docs/python/nn.md#pooling and http://tensorflow.org/api_docs/python/nn.md#convolution
The definition of the padding types should be swapped.
Now it is like this:
But it should be like this:
I also think it should be made clear that the padding is already included in the shape(value) of the formula "shape(output) = (shape(value) - ksize + 1) / strides".
Or maybe the formula should be changed to the following simpler one (taken from http://cs231n.github.io/convolutional-networks/#conv):
where pad = 0 if padding='VALID' or pad = floor(ksize/2) if padding='SAME'.
The text was updated successfully, but these errors were encountered: