Skip to content

Commit

Permalink
fix load model when resuming
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfix committed Dec 20, 2023
1 parent f687810 commit 2543cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LabsSolutions/02-pytorch-asr/main_ctc.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def train(args):

# @SOL
if args.resume_from is not None:
model._load_from_state_dict(torch.load(args.resume_from))
model.load_state_dict(torch.load(args.resume_from))
# SOL@

# Loss, optimizer
Expand Down

0 comments on commit 2543cad

Please sign in to comment.