# tf.distribute.ReduceOp

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/distribute/reduce_util.py#L23-L47) |

Indicates how a set of values should be reduced.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.distribute.ReduceOp`](https://www.tensorflow.org/api_docs/python/tf/distribute/ReduceOp)

<br />

- `SUM`: Add all the values.
- `MEAN`: Take the arithmetic mean ("average") of the values.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| MEAN | `<ReduceOp.MEAN: 'MEAN'>` |
| SUM | `<ReduceOp.SUM: 'SUM'>` |

<br />