Skip to content

Logic behind MaxUnpoolWithArgmax #33

@pedrogalher

Description

@pedrogalher

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions