Max pooling by vector norm #9818
Answered
by
hawkinsp
mariogeiger
asked this question in
Q&A
-
Hi, I am looking for a way to do max pooling using indices in jax. Here is what I exactly want to do: window_dimension = 2
stride = 2
input = [
[1.0, 0.0, 1.0],
[2.0, 2.0, 0.0],
[3.0, 0.0, 1.0],
[0.0, 1.0, 1.0],
]
# In each window, pick the vector with the largest norm
output = [
[2.0, 2.0, 0.0],
[3.0, 0.0, 1.0],
] |
Beta Was this translation helpful? Give feedback.
Answered by
hawkinsp
Mar 9, 2022
Replies: 1 comment 9 replies
-
Perhaps something like this will work?
|
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
mariogeiger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps something like this will work?