Skip to content

Commit

Permalink
remove extra ']'
Browse files Browse the repository at this point in the history
  • Loading branch information
dido1998 authored Apr 2, 2019
1 parent e9fcaf2 commit 2dfafd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copying.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def train_model(model, epochs, criterion, optimizer):
if args.loadsaved==1:
modelstate=torch.load(log_dir+'/best_model.pt')
net.load_state_dict(modelstate['net'].state_dict())
optimizer.load_state_dict(modelstate['opt'].state_dict()])
optimizer.load_state_dict(modelstate['opt'].state_dict())
criterion = nn.CrossEntropyLoss()
start_epoch=0
best_acc=0
Expand Down

0 comments on commit 2dfafd5

Please sign in to comment.