Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 17, 2024
1 parent 4f41d4d commit 1a8360b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sota-implementations/dqn/dqn_atari.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def main(cfg: "DictConfig"): # noqa: F821
delay_value=True,
)
loss_module.set_keys(done="end-of-life", terminated="end-of-life")
loss_module.make_value_estimator(gamma=cfg.loss.gamma)
loss_module.make_value_estimator(gamma=cfg.loss.gamma, device=device)
target_net_updater = HardUpdate(
loss_module, value_network_update_interval=cfg.loss.hard_update_freq
)
Expand Down
2 changes: 1 addition & 1 deletion sota-implementations/dqn/dqn_cartpole.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def main(cfg: "DictConfig"): # noqa: F821
loss_function="l2",
delay_value=True,
)
loss_module.make_value_estimator(gamma=cfg.loss.gamma)
loss_module.make_value_estimator(gamma=cfg.loss.gamma, device=device)
loss_module = loss_module.to(device)
target_net_updater = HardUpdate(
loss_module, value_network_update_interval=cfg.loss.hard_update_freq
Expand Down

0 comments on commit 1a8360b

Please sign in to comment.