# tf.contrib.metrics.aggregate_metrics

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/metrics/python/ops/metric_ops.py#L3672-L3688) |

Aggregates the metric value tensors and update ops into two lists.

    tf.contrib.metrics.aggregate_metrics(
        *value_update_tuples
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `*value_update_tuples` | a variable number of tuples, each of which contain the pair of (value_tensor, update_op) from a streaming metric. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of value `Tensor` objects and a list of update ops. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if `value_update_tuples` is empty. |

<br />