Skip to content

Commit

Permalink
Merge branch 'instadeepai:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zombie-einstein authored Nov 28, 2024
2 parents 6322f61 + 1ec8808 commit 4ba7688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jumanji/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def step(
) -> Tuple[State, Observation, chex.Array, chex.Array, chex.Array, Optional[Any]]:
"""Step function of a Jumanji environment to be jitted."""
state, timestep = self._env.step(state, action)
term = timestep.discount.astype(bool)
term = ~timestep.discount.astype(bool)
trunc = timestep.last().astype(bool)
return state, timestep.observation, timestep.reward, term, trunc, timestep.extras

Expand Down

0 comments on commit 4ba7688

Please sign in to comment.