How to return the indices of max values with max pooling? #4106
Unanswered
LauriKurki
asked this question in
Q&A
Replies: 1 comment
-
I don't know about flax, but you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Is there a way to return the indices of the maximum values returned with
flax.linen.max_pool
? Alternatively, how can I make use of theflax.linen.pool
helper function in making my own pooling function?For example,
would output
as these indices correspond to the maximum values in each window.
If it's any help, this is implemeted in Pytorch (https://pytorch.org/docs/stable/generated/torch.nn.MaxPool3d.html) with argument
return_indices=True
.Best,
Lauri
Beta Was this translation helpful? Give feedback.
All reactions