Skip to content

Commit 695a492

Browse files
authored
Merge branch 'main' into suraj813-patch-1
2 parents 10698f7 + 65a1b64 commit 695a492

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-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
#

0 commit comments

Comments
 (0)