Dive-into-DL-PyTorch icon indicating copy to clipboard operation
Dive-into-DL-PyTorch copied to clipboard

5.5节 train_ch5参数中的batch_size没有用上?

Open fengxijia opened this issue 4 years ago • 2 comments

bug描述 train_ch5参数中的batch_size没有用上。请问应该如何理解呢。 image

版本信息 pytorch: 1.2.0 torchvision: 0.4.0 torchtext: 0.4.0 windows10+Jupyter notebook

fengxijia avatar Mar 25 '20 14:03 fengxijia

确实,可能是拷贝 train_ch3时的笔误

anonymouss avatar Mar 29 '20 14:03 anonymouss

batch_size = 256 train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size=batch_size)

我做5.5节时出现下面的报错: Traceback (most recent call last): File "e:/python1/lesson/LeNet.py", line 38, in train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size) AttributeError: module 'd2lzh_pytorch' has no attribute 'load_data_fashion_mnist' 是因为版本号不匹配吗?

版本信息: pytorch: 1.0.1 torchvision: 0.2.2 torchtext: 0.6.0 windows7+VS code

xiali-github avatar Jul 08 '20 06:07 xiali-github