Default stride for pooling functions #2023
-
A bit of a nitpick but I was wondering why the default behavior of pooling functions is to have stride 1 instead of the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for bringing this up! Update 25 Apr, 2022: #2064 adds default stride to the docstring of pooling. I took a brief look at other frameworks for
I actually don't know why we chose this default, it does seem a bit surprising if you come from torch. (@jheek any idea?). |
Beta Was this translation helpful? Give feedback.
-
I was wondering the same about this default choice. Would be nice to know if there is a good reason behind it. |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this up!
Update 25 Apr, 2022: #2064 adds default stride to the docstring of pooling.
We should document these defaults in our docstring, because right now we don't, which is very odd actually: https://github.com/google/flax/blob/main/flax/linen/pooling.py#L36I took a brief look at other frameworks for
max_pool
:strides
is not an optional argument, and doesn't have a default value: https://www.tensorflow.org/api_docs/python/tf/nn/max_poolI actually don't know why we chose this default, it does seem a bit surprising if you come fro…