Custom pooling and Autodiff #4622
Unanswered
DiagRisker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Again,
I am trying to force custom pooling procedure instead of max, min, avg
Note that feeding a pooling operator to lax.reduce_window, will lead to at least 2 input at a time inside the function Mixpmeanpool, hence the *a declaration!
from what I understand, theses are rows of data with respect to the window .
Does someone know how to reexpress this without breaking the autodiff chain ?
for classical nnx/nn . avg_pool / min_pool / max_pool , we have https://flax.readthedocs.io/en/v0.5.3/_modules/flax/linen/pooling.html, with lax.add, lax.max , lax.min
Beta Was this translation helpful? Give feedback.
All reactions