dm_env¶
GymnaxToDmEnvWrapper ¶
Bases: GymnaxWrapper
Return TimeStep objects from reset and step, as in dm_env.
The wrapper stays functional and jittable: the environment state travels inside
the TimeStep, which is passed back into step.
Parameters:
-
env(Environment) –Environment to wrap.
TimeStep ¶
Transition returned by GymnaxToDmEnvWrapper.
Attributes:
-
state(EnvState) –Environment state, already reset if the episode ended.
-
reward(Array) –Reward of the transition, 0 after a reset.
-
discount(Array) –0 if the episode terminated, 1 otherwise (including truncation).
-
observation(Array) –Observation matching
state. -
final_observation(Array) –Observation before any automatic reset.