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

Different behavior for max pooling with padding "VALID" #121

Closed
Corea opened this issue Sep 1, 2017 · 0 comments
Closed

Different behavior for max pooling with padding "VALID" #121

Corea opened this issue Sep 1, 2017 · 0 comments

Comments

@Corea
Copy link
Contributor

Corea commented Sep 1, 2017

I translate code below by tensorflow2ncnn.

shape = (1, 4, 7, 1)  # NHWC

images = tf.placeholder(tf.float32, shape=shape, name="input/image")
layer = slim.max_pool2d(images, kernel_size=2, stride=2, padding="VALID")
output = tf.identity(layer, name="output/score")

Output shape is different between ncnn and tensorflow. I think output layer should have 6 elements. (shape is (1, 2, 3, 1)) But ncnn has 8 elements with shape (4, 2, 1).

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

No branches or pull requests

1 participant