pytorch-deform-conv icon indicating copy to clipboard operation
pytorch-deform-conv copied to clipboard

Question about implementation

Open lxtGH opened this issue 7 years ago • 1 comments

in file deform_conv.py inds = indices[:, 0]*input.size(1)*input.size(2)+ indices[:, 1]*input.size(2) + indices[:, 2] what does it mean ?

lxtGH avatar Jan 02 '18 10:01 lxtGH

That's a way to match the indexes for th_flatten(input), for a better understanding, I would suggest to clone the code, and change it by adding print statement to check each variables, and understand it step by step. Good luck.

oeway avatar Jan 17 '18 16:01 oeway