Skip to content

Commit

Permalink
Compute the multi-agend reward as the sum of each agent reward in jax
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM committed Aug 14, 2024
1 parent 6912b77 commit f6198e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skrl/multi_agents/jax/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def record_transition(self,
:type timesteps: int
"""
if self.write_interval > 0:
_rewards = next(iter(rewards.values()))
_rewards = sum(rewards.values())
_terminated = next(iter(terminated.values()))
_truncated = next(iter(truncated.values()))

Expand Down

0 comments on commit f6198e6

Please sign in to comment.