Skip to content

Commit

Permalink
Fix current shared next states usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM committed Aug 14, 2024
1 parent f6198e6 commit a243cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skrl/multi_agents/jax/mappo/mappo.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def _update(self, timestep: int, timesteps: int) -> None:

# compute returns and advantages
value.training = False
last_values, _, _ = value.act({"states": self._shared_state_preprocessor[uid](self._current_shared_next_states[uid])}, role="value") # TODO: .float()
last_values, _, _ = value.act({"states": self._shared_state_preprocessor[uid](self._current_shared_next_states)}, role="value") # TODO: .float()
value.training = True
if not self._jax: # numpy backend
last_values = jax.device_get(last_values)
Expand Down

0 comments on commit a243cae

Please sign in to comment.