add text for loading model in section 6

This commit is contained in:
Daniel Bourke committed 2022-03-08 08:18:23 +10:00
1 parent 0ffd779b00
commit 11494cdc25
1 file changed
+4 -1
+4 -1
View File
@@ -2294,7 +2294,10 @@
"source": [
"And just to make sure everything worked well, let's load it back in.\n",
"\n",
"We'll "
"We'll:\n",
"* Create a new instance of the `LinearRegressionModelV2()` class\n",
"* Load in the model state dict using `torch.nn.Module.load_state_dict()`\n",
"* Send the new instance of the model to the target device (to ensure our code is device-agnostic)"
]
},
{