# tf_agents.metrics.tf_metrics.TFDeque

<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/metrics/tf_metrics.py#L32-L83) |

Deque backed by tf.Variable storage.

    tf_agents.metrics.tf_metrics.TFDeque(
        max_len, dtype, shape=(), name='TFDeque'
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `data` | <br /> <br /> |
| `length` | <br /> <br /> |

<br />

## Methods

### `add`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py#L53-L57)

    add(
        value
    )

### `clear`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py#L63-L65)

    clear()

### `extend`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py#L48-L51)

    extend(
        value
    )

### `max`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py#L73-L77)

    max()

### `mean`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py#L67-L71)

    mean()

### `min`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py#L79-L83)

    min()