Skip to content

Commit

Permalink
Message is printed when the model is saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcswillems committed May 31, 2018
1 parent d8a8dda commit b740d5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rl/scripts/train_il.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,6 @@
if torch.cuda.is_available():
acmodel.cpu()
utils.save_model(acmodel, model_name)
logger.log("Model is saved.")
if torch.cuda.is_available():
acmodel.cuda()
1 change: 1 addition & 0 deletions rl/scripts/train_rl.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,6 @@
if torch.cuda.is_available():
acmodel.cpu()
utils.save_model(acmodel, model_name)
log("Model is saved.")
if torch.cuda.is_available():
acmodel.cuda()

0 comments on commit b740d5a

Please sign in to comment.