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

What is the purpose of the tf.pad operation? Can it be combined with conv2d or max_pool? #13

Open
suphy2009 opened this issue Jun 4, 2018 · 0 comments

Comments

@suphy2009
Copy link

suphy2009 commented Jun 4, 2018

I notice that tf.pad is used in the code. What is the purpose? Can it be combined with conv2d or max_pool?

For example:
In model.py,
padded = tf.pad(conv1, [[0, 0], [0, 1], [0, 1], [0, 0]], "CONSTANT")

In shufflenet_unit,
padded = tf.pad(shuffled, [[0, 0], [1, 1], [1, 1], [0, 0]], "CONSTANT")

Looking forward to your reply!

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