deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.

Home Page:https://www.manning.com/books/deep-learning-with-pytorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

scchess opened this issue · comments

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

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

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

@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?