Commit 36988bb
Remove dangling comma from save/load example (#3593)
The tutorial currently loads a tuple of shape `(1,)` into `model`, which
appears to be a typo:
```python
model = torch.load('model.pth', weights_only=False),
```
This PR removes the comma so that `model` is actually a `Module`.
Co-authored-by: Svetlana Karslioglu <[email protected]>1 parent 8e3c260 commit 36988bb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments