原语句:
num_epochs = 10
train_ch3(net, train_iter, test_iter, cross_entropy, num_epochs, updater)
报错:
ImportError: cannot import name '_check_savefig_extra_args' from 'matplotlib.backend_bases'
在终端查看版本:
pip list
d2l:0.17.5
matplotlib : 3.5.1
版本不对:
!pip install matplotlib==3.0
num_epochs = 10
train_ch3(net, train_iter, test_iter, cross_entropy, num_epochs, updater)
d2l.plt.show()