d2l-ai / d2l-en

Interactive deep learning book with multi-framework code, math, and discussions. Adopted at 500 universities from 70 countries including Stanford, MIT, Harvard, and Cambridge.
https://D2L.ai
Other
23.36k stars 4.29k forks source link

AttributeError: module 'd2l.torch' has no attribute 'train_ch3' #2557

Open WILLSONXWX opened 1 year ago

WILLSONXWX commented 1 year ago

Hi there, I could not run train_ch3 even at the start of the chapter about softmax. May I know is it because I have the wrong version of d2l? and which version should I have for the lesson

liuyuxivapor commented 1 year ago

I v got the same problem...

Wananrd commented 1 year ago

I meet the same problem at the chapter about MLP.

AnirudhDagar commented 1 year ago

Please pip install d2l==0.17.6 to use older version of d2l which has these saved functions. In the latest version, we refactored the code and removed them.

gab-chen commented 11 months ago

@WILLSONXWX Does the problem still exist? I ran the latest colab notebook of chapter 4.1 about softmax. It ran as expected.

Ray7788 commented 9 months ago

Hi there, I solved this problem with chapter 4.1 MLP-scratch, my new d2l version is 0.17.6. (I uninstalled d2l v1.0.3 before but it doesn't work)