Skip to content

Commit

Permalink
back to 0.2.23 ish
Browse files Browse the repository at this point in the history
  • Loading branch information
syrkis committed Aug 7, 2024
1 parent 8082cff commit 3217f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parabellum/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ def reset(self, rng: chex.PRNGKey) -> Tuple[Dict[str, chex.Array], State]:
state = self._push_units_away(state) # type: ignore
obs = self.get_obs(state)
world_state = self.get_world_state(state)
obs["world_state"] = jax.lax.stop_gradient(world_state)
# obs["world_state"] = jax.lax.stop_gradient(world_state)
return obs, state

def step_env(self, rng, state: State, action: Array):
obs, state, rewards, dones, infos = super().step_env(rng, state, action)
# delete world_state from obs
# obs.pop("world_state")
obs.pop("world_state")
return obs, state, rewards, dones, infos

def _our_push_units_away(
Expand Down

0 comments on commit 3217f3a

Please sign in to comment.