mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
1 file changed
+2
-2
@@ -2734,7 +2734,7 @@
|
||||
"# Train on CPU\n",
|
||||
"model_cpu = MNIST_model(input_shape=1,\n",
|
||||
" hidden_units=10,\n",
|
||||
" output_shape=10).to(\"cpu\") co\n",
|
||||
" output_shape=10).to(\"cpu\")\n",
|
||||
"\n",
|
||||
"# Create a loss function and optimizer\n",
|
||||
"loss_fn = nn.CrossEntropyLoss()\n",
|
||||
@@ -3846,4 +3846,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user