Skip to content

Commit

Permalink
Add lunarlander checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
werner-duvaud committed Sep 23, 2020
1 parent 6a273e0 commit 77a73f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion replay_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def compute_target_value(self, game_history, index):
if game_history.reanalysed_predicted_root_values is None
else game_history.reanalysed_predicted_root_values
)
print(game_history.reanalysed_predicted_root_values is None)
last_step_value = (
root_values[bootstrap_index]
if game_history.to_play_history[bootstrap_index]
Expand Down
Binary file added results/lunarlander/model.checkpoint
Binary file not shown.
2 changes: 1 addition & 1 deletion trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, initial_checkpoint, config):

self.training_step = initial_checkpoint["training_step"]

if not self.config.train_on_gpu:
if "cuda" not in str(next(self.model.parameters()).device):
print("You are not training on GPU.\n")

# Initialize the optimizer
Expand Down

0 comments on commit 77a73f1

Please sign in to comment.