Skip to content

Commit

Permalink
fix sac obs error (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyguo11 authored Oct 17, 2023
1 parent fe95913 commit 33ba628
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rl_games/algos_torch/sac_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ def play_steps(self, random_exploration = False):

if isinstance(next_obs, dict):
next_obs_processed = next_obs['obs']

self.obs = next_obs.clone()
self.obs = next_obs_processed.clone()
else:
self.obs = next_obs.clone()

rewards = self.rewards_shaper(rewards)

Expand Down

0 comments on commit 33ba628

Please sign in to comment.