Skip to content

Commit 46eb8c7

Browse files
authored
Added torch.nn import
Added `import torch.nn as nn` as students may not think to add the import half-way down the doc.
1 parent 4af6b16 commit 46eb8c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transfer-learning/Transfer_Learning_Exercise.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@
269269
},
270270
"outputs": [],
271271
"source": [
272+
"import torch.nn as nn",
272273
"## TODO: add a last linear layer that maps n_inputs -> 5 flower classes\n",
273274
"## new layers automatically have requires_grad = True\n",
274275
"\n",

0 commit comments

Comments
 (0)