Skip to content

Commit

Permalink
Make global step monotonic in pgmorl
Browse files Browse the repository at this point in the history
  • Loading branch information
ffelten committed Aug 8, 2024
1 parent d8db45b commit 7e3e51c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions morl_baselines/multi_policy/pgmorl/pgmorl.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ def get_config(self) -> dict:

def __train_all_agents(self, iteration: int, max_iterations: int):
for i, agent in enumerate(self.agents):
agent.global_step = self.global_step
agent.train(self.start_time, iteration, max_iterations)
self.global_step += self.steps_per_iteration * self.num_envs

Expand Down

0 comments on commit 7e3e51c

Please sign in to comment.