import d2l
print(d2l.version)
0.17.6
num_epochs, lr = 10, 0.1
updater = torch.optim.SGD(params, lr=lr)
d2l.train_ch3(net, train_iter, test_iter, loss, num_epochs, updater)
AttributeError Traceback (most recent call last)
Cell In[15], line 3
1 num_epochs, lr = 10, 0.1
2 updater = torch.optim.SGD(params, lr=lr)
----> 3 d2l.train_ch3(net, train_iter, test_iter, loss, num_epochs, updater)
AttributeError: module 'd2l' has no attribute 'train_ch3'