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

Missing MaxPool2d #538

Open
KaleabTessera opened this issue Sep 29, 2022 · 1 comment
Open

Missing MaxPool2d #538

KaleabTessera opened this issue Sep 29, 2022 · 1 comment

Comments

@KaleabTessera
Copy link

I am converting this simple tf example into JAX using Haiku. In process of doing this, I realized there is no MaxPool2d module. Any plans on adding this or is there a way to adapt the current MaxPool module?

More precisely, how would you write this using haiku?

layers.MaxPooling2D((2, 2))
@KaleabTessera
Copy link
Author

I guess you could do this:

 hk.MaxPool(window_shape=(1, 2, 2, 1),
                      strides=(1, 2, 2, 1),
                      padding="VALID"),

Not sure if there is a better way though?

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