# tf.distribute.experimental.CollectiveCommunication

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/CollectiveCommunication) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/distribute/cross_device_ops.py#L975-L986) |

Communication choices for CollectiveOps.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.distribute.experimental.CollectiveCommunication`](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/CollectiveCommunication), \`tf.compat.v2.distribute.experimental.CollectiveCommunication\`

<br />

- `AUTO`: Default to runtime's automatic choices.
- `RING`: TensorFlow's ring algorithms for all-reduce and all-gather.
- `NCCL`: Use ncclAllReduce for all-reduce, and ring algorithms for all-gather.

## Class Variables

- `AUTO`
- `NCCL`
- `RING`