Skip to content

Commit

Permalink
Fix save config.py to config.yaml (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiseongHAN authored Dec 13, 2021
1 parent 96bceb9 commit c5f7d1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rl_algorithms/common/abstract/distributed_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def set_wandb(self):
max_episode_steps=self.max_episode_steps,
)
wandb.config.update(additional_log)
shutil.copy(self.log_cfg.cfg_path, os.path.join(wandb.run.dir, "config.py"))
shutil.copy(self.log_cfg.cfg_path, os.path.join(wandb.run.dir, "config.yaml"))

def recv_log_info(self):
"""Receive info from learner."""
Expand Down
2 changes: 1 addition & 1 deletion rl_algorithms/common/abstract/learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(
os.makedirs(self.ckpt_path, exist_ok=True)

# save configuration
shutil.copy(log_cfg.cfg_path, os.path.join(self.ckpt_path, "config.py"))
shutil.copy(log_cfg.cfg_path, os.path.join(self.ckpt_path, "config.yaml"))

@abstractmethod
def _init_network(self):
Expand Down

0 comments on commit c5f7d1d

Please sign in to comment.