Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions beginner_source/introyt/trainingyt.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,12 @@ def train_one_epoch(epoch_index, tb_writer):

#########################################################################
# To load a saved version of the model:
#
# ::
#
# saved_model = GarmentClassifier()
# saved_model.load_state_dict(torch.load(PATH))
#
#
# .. code:: python
#
# saved_model = GarmentClassifier()
# saved_model.load_state_dict(torch.load(PATH))
#
# Once you’ve loaded the model, it’s ready for whatever you need it for -
# more training, inference, or analysis.
#
Expand Down