Skip to content

Commit

Permalink
convert all on instantiate
Browse files Browse the repository at this point in the history
  • Loading branch information
belerico committed Dec 18, 2023
1 parent a8766df commit 2ad65f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sheeprl/algos/ppo/ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def main(fabric: Fabric, cfg: Dict[str, Any]):
)

# Define the optimizer
optimizer = hydra.utils.instantiate(cfg.algo.optimizer, params=agent.parameters())
optimizer = hydra.utils.instantiate(cfg.algo.optimizer, params=agent.parameters(), _convert_="all")

if fabric.is_global_zero:
save_configs(cfg, log_dir)
Expand Down

0 comments on commit 2ad65f3

Please sign in to comment.