How to Implement MaxPooling2D with Ceil Mode in Flax? #2070
-
What is the equivalent code for maxpooling2d with ceil mode in PyTorch? So for example in PyTorch we can code like this : |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Note that Flax also exports the more powerful |
Beta Was this translation helpful? Give feedback.
-
Hi @firqaaa, we currently don't support ceil mode for our pooling layers. The best way to reproduce pytorch behavior is to use |
Beta Was this translation helpful? Give feedback.
Hi @firqaaa, we currently don't support ceil mode for our pooling layers. The best way to reproduce pytorch behavior is to use
VALID
padding and then pad the input manually to the shapes you want using thepadding
argument.