We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10698f7 + 65a1b64 commit 695a492Copy full SHA for 695a492
beginner_source/introyt/trainingyt.py
@@ -321,12 +321,12 @@ def train_one_epoch(epoch_index, tb_writer):
321
322
#########################################################################
323
# 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
+#
+# .. code:: python
+# saved_model = GarmentClassifier()
+# saved_model.load_state_dict(torch.load(PATH))
330
# Once you’ve loaded the model, it’s ready for whatever you need it for -
331
# more training, inference, or analysis.
332
#
0 commit comments