Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

running with a newer pytorch version #33

Open
chenhuims opened this issue May 13, 2019 · 1 comment
Open

running with a newer pytorch version #33

chenhuims opened this issue May 13, 2019 · 1 comment

Comments

@chenhuims
Copy link

Hi, I hit the following error when I run cifar.py with pytorch 1.0.1.post2.

IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number

This is due to a pytorch version greater hthan 0.5 is used as reported here. I've posted a fix here in case other people encounter the same issue.

@bearpaw
Copy link
Owner

bearpaw commented May 15, 2019

Thanks. Would you be able to create a PR?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants