mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
add text for loading model in section 6
This commit is contained in:
1 parent
0ffd779b00
commit
11494cdc25
1 file changed
+4
-1
@@ -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)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user