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

Logic behind MaxUnpoolWithArgmax #33

Open
pedrogalher opened this issue Apr 4, 2021 · 0 comments
Open

Logic behind MaxUnpoolWithArgmax #33

pedrogalher opened this issue Apr 4, 2021 · 0 comments

Comments

@pedrogalher
Copy link

pedrogalher commented Apr 4, 2021

I have been reading thorugh the code for the function "MaxUnpoolWithArgmax" since I'm interested in the logic to extract the indexes [b,y,x,c] from the argmax tensor. I cannot understand the maths behind to extract the index "y" and "x". Could you elaborate a bit on how did you get these expressions? :

  • y = argmax // (output_shape[2] * output_shape[3])

  • x = argmax % (output_shape[2] * output_shape[3]) // output_shape[3]

Thank you so much
Pedro

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