# Module: tf_agents.environments.suite_gym

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/environments/suite_gym.py) |

Suite for loading Gym Environments.

Note we use gym.spec(env_id).make() on gym envs to avoid getting a TimeLimit
wrapper on the environment. OpenAI's TimeLimit wrappers terminate episodes
without indicating if the failure is due to the time limit, or due to negative
agent behaviour. This prevents us from setting the appropriate discount value
for the final step of an episode. To prevent that we extract the step limit
from the environment specs and utilize our TimeLimit wrapper.

## Functions

[`load(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/suite_gym/load): Loads the selected environment and wraps it with the specified wrappers.

[`wrap_env(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/suite_gym/wrap_env): Wraps given gym environment with TF Agent's GymWrapper.

## Type Aliases

[`TimeLimitWrapperType`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/suite_gym/TimeLimitWrapperType)

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />