プリンキピア

第8章現代の畳み込みニューラルネットワーク

8.7.5. Training8.7.5 訓練

Since we are using a deeper network here, in this section, we will reduce the input height and width from 224 to 96 to simplify the computation.
英語のヒント
ここではもっと深いネットワークを使うので、この節では計算を単純にするため、入力の高さと幅を224から96に減らす。
model = DenseNet(lr=0.01)
trainer = d2l.Trainer(max_epochs=10, num_gpus=1)
data = d2l.FashionMNIST(batch_size=128, resize=(96, 96))
trainer.fit(model, data)