You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, so I have been trying to implement PyTorch's AdaptiveAvgPooling2d in Flax and from their official docs and internet sources, I came to these formulas to compute the parameter values to adapt to the input.
Now while this may not be the right place to ask and validate my implementation, I am not really sure if I can take advantage of nn.avg_pool to implement the adaptive pooling layer. Following is what I came up with;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, so I have been trying to implement PyTorch's AdaptiveAvgPooling2d in Flax and from their official docs and internet sources, I came to these formulas to compute the parameter values to adapt to the input.
Now while this may not be the right place to ask and validate my implementation, I am not really sure if I can take advantage of
nn.avg_pool
to implement the adaptive pooling layer. Following is what I came up with;While the desired output shape is obtained correctly, I'm unsure if there are any cases for which the above might fail.
Any help is appreciated ❤️.
Beta Was this translation helpful? Give feedback.
All reactions