Skip to content

Commit dffd269

Browse files
author
Svetlana Karslioglu
authored
Merge branch 'main' into fix-2198
2 parents fd08e7c + 65a1b64 commit dffd269

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

beginner_source/introyt/trainingyt.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ def train_one_epoch(epoch_index, tb_writer):
321321

322322
#########################################################################
323323
# To load a saved version of the model:
324-
#
325-
# ::
326-
#
327-
# saved_model = GarmentClassifier()
328-
# saved_model.load_state_dict(torch.load(PATH))
329-
#
324+
#
325+
# .. code:: python
326+
#
327+
# saved_model = GarmentClassifier()
328+
# saved_model.load_state_dict(torch.load(PATH))
329+
#
330330
# Once you’ve loaded the model, it’s ready for whatever you need it for -
331331
# more training, inference, or analysis.
332332
#

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
'pytorch_project': 'tutorials',
205205
'collapse_navigation': False,
206206
'display_version': True,
207+
'navigation_with_keys': True,
207208
'logo_only': False,
208209
'analytics_id': 'UA-117752657-2',
209210
}

0 commit comments

Comments
 (0)