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

No module named torch.meshgrid #8

Open
wgqbit95 opened this issue Feb 25, 2019 · 2 comments
Open

No module named torch.meshgrid #8

wgqbit95 opened this issue Feb 25, 2019 · 2 comments

Comments

@wgqbit95
Copy link

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

@dontLoveBugs
Copy link

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

@liwenjielongren
Copy link

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

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

3 participants