pytorch-deform-conv-v2
pytorch-deform-conv-v2 copied to clipboard
No module named torch.meshgrid
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
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
are you solve this problem? @wgqbit95 ,my torch versions are 0.4.0 and 0.4.1