deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
https://www.manning.com/books/deep-learning-with-pytorch
4.74k stars 2.01k forks source link

cannot import name '_lazy_import' from 'torchvision.extension' #21

Closed scchess closed 4 years ago

scchess commented 4 years ago

2_birds_airplanes.ipynb gives the error message. Possibility version mismatch. I'm using 0.4.0. Which version should I be using?

elistevens commented 4 years ago

The book was tested with torch 1.4 and IIRC that implies torchvision 0.5.0. Try those versions?

scchess commented 4 years ago

Thanks. It worked on 1.4.0 but not the latest version. I downgraded and it worked.

lantiga commented 4 years ago

@student-t I'm testing with pytorch 1.6.0 and 0.7.0 but I can't reproduce the issue. What is the line that was triggering the error for you?