mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
update code for 06
This commit is contained in:
1 parent
fefa5bcc33
commit
53fa577aaa
1 file changed
+2
-2
@@ -598,7 +598,7 @@
|
||||
"# Update the classifier\n",
|
||||
"model.classifier = torch.nn.Linear(1280, 10).to(device)\n",
|
||||
"\n",
|
||||
"# Freeze all base layers (the feature extractor in VGG)\n",
|
||||
"# Freeze all base layers (the feature extractor in EfficientNet)\n",
|
||||
"for param in model.features.parameters():\n",
|
||||
" param.requires_grad = False\n",
|
||||
"\n",
|
||||
@@ -610,7 +610,7 @@
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Make a small train function"
|
||||
"## Train model"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user