Skip to content

Commit

Permalink
add rng to env step
Browse files Browse the repository at this point in the history
  • Loading branch information
syrkis committed Aug 7, 2024
1 parent 4846247 commit 74a28f5
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 @@ -129,8 +129,8 @@ def reset(self, rng: chex.PRNGKey) -> Tuple[Dict[str, chex.Array], State]:
# obs["world_state"] = jax.lax.stop_gradient(world_state)
return obs, state

def step_env(self, state: State, action: Array):
obs, state, rewards, dones, infos = super().step_env(state, action)
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")
return obs, state, rewards, dones, infos
Expand Down

0 comments on commit 74a28f5

Please sign in to comment.