Skip to content

How to Implement MaxPooling2D with Ceil Mode in Flax? #2070

Answered by marcvanzee
firqaaa asked this question in Q&A
Discussion options

You must be logged in to vote

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 the padding argument.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by marcvanzee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2040 on April 26, 2022 16:53.