# Module: tf_agents.environments.wrappers

<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/wrappers.py) |

Environment wrappers.

Wrappers in this module can be chained to change the overall behaviour of an
environment in common ways.

## Classes

[`class ActionClipWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/ActionClipWrapper): Wraps an environment and clips actions to spec before applying.

[`class ActionDiscretizeWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/ActionDiscretizeWrapper): Wraps an environment with continuous actions and discretizes them.

[`class ActionOffsetWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/ActionOffsetWrapper): Offsets actions to be zero-based.

[`class ActionRepeat`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/ActionRepeat): Repeates actions over n-steps while acummulating the received reward.

[`class ExtraDisabledActionsWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/wrappers/ExtraDisabledActionsWrapper): Adds extra unavailable actions.

[`class FixedLength`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/wrappers/FixedLength): Truncates long episodes and pads short episodes to have a fixed length.

[`class FlattenActionWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/wrappers/FlattenActionWrapper): Flattens the action.

[`class FlattenObservationsWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/FlattenObservationsWrapper): Wraps an environment and flattens nested multi-dimensional observations.

[`class GoalReplayEnvWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/GoalReplayEnvWrapper): Adds a goal to the observation, used for HER (Hindsight Experience Replay).

[`class HistoryWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/HistoryWrapper): Adds observation and action history to the environment's observations.

[`class ObservationFilterWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/ObservationFilterWrapper): Filters observations based on an array of indexes.

[`class OneHotActionWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/OneHotActionWrapper): Converts discrete action to one_hot format.

[`class PerformanceProfiler`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/PerformanceProfiler): End episodes after specified number of steps.

[`class PyEnvironmentBaseWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/PyEnvironmentBaseWrapper): PyEnvironment wrapper forwards calls to the given environment.

[`class RunStats`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/RunStats): Wrapper that accumulates run statistics as the environment iterates.

[`class TimeLimit`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/environments/TimeLimit): End episodes after specified number of steps.

<br />

<br />

<br />

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

<br />