# Module: tf_agents.replay_buffers

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

Replay Buffers Module.

## Modules

[`py_hashed_replay_buffer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/py_hashed_replay_buffer) module: Uniform replay buffer in Python with compressed storage.

[`py_uniform_replay_buffer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/py_uniform_replay_buffer) module: Uniform replay buffer in Python.

[`replay_buffer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/replay_buffer) module: TF-Agents Replay Buffer API.

[`reverb_replay_buffer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/reverb_replay_buffer) module: Reverb as a TF-Agents replay buffer.

[`reverb_utils`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/reverb_utils) module: Utilities for working with a reverb replay buffer.

[`table`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/table) module: A tensorflow table stored in tf.Variables.

[`tf_uniform_replay_buffer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/tf_uniform_replay_buffer) module: A batched replay buffer of nests of Tensors which can be sampled uniformly.

## Classes

[`class ReverbAddEpisodeObserver`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/ReverbAddEpisodeObserver): Observer for writing episodes to Reverb.

[`class ReverbAddTrajectoryObserver`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/ReverbAddTrajectoryObserver): Stateful observer for writing fixed length trajectories to Reverb.

[`class ReverbReplayBuffer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/ReverbReplayBuffer): Reverb ReplayBuffer exposed as a TF-Agents replay buffer.

[`class TFUniformReplayBuffer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/replay_buffers/TFUniformReplayBuffer): A TFUniformReplayBuffer with batched adds and uniform sampling.