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

No module named torch.meshgrid

Open wgqbit95 opened this issue 6 years ago • 2 comments

I have used all the torch versions 0.4.0 0.4.1 1.0.0, but there is always an error 'no module named torch.meshgrid' , could you please help me solve the problem

wgqbit95 avatar Feb 25 '19 09:02 wgqbit95

Hi, firstly, you need to check if you import the torch module correctly or not. Then, "torch.meshgrid" is different in between 0.4.1 and 1.0.0.

     In torch 0.4.1 grid_x, grid_y = torch.meshgrid([x, y])
     In torch 1.0   grid_x, grid_y = torch.meshgrid(x, y)

You can refer to my fork

dontLoveBugs avatar Feb 26 '19 10:02 dontLoveBugs

are you solve this problem? @wgqbit95 ,my torch versions are 0.4.0 and 0.4.1

liwenjielongren avatar Jul 16 '20 02:07 liwenjielongren