tf.distribute.experimental.CommunicationImplementation
Stay organized with collections
Save and categorize content based on your preferences.
Cross device communication implementation.
AUTO
: Automatically chosen by Tensorflow.
RING
: TensorFlow's ring algorithms for all-reduce and
all-gather.
NCCL
: NVIDIA®'s NCCL library. This is now only used for all-reduce on
GPUs; all-reduce on CPU, all-gather and broadcast fallbacks to RING.
Class Variables |
AUTO
|
<CommunicationImplementation.AUTO: 'AUTO'>
|
NCCL
|
<CommunicationImplementation.NCCL: 'NCCL'>
|
RING
|
<CommunicationImplementation.RING: 'RING'>
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.distribute.experimental.CommunicationImplementation\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/distribute/collective_util.py#L26-L44) |\n\nCross device communication implementation.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tf.distribute.experimental.CollectiveCommunication`](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/CommunicationImplementation)\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.distribute.experimental.CollectiveCommunication`](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/CommunicationImplementation), [`tf.compat.v1.distribute.experimental.CommunicationImplementation`](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/CommunicationImplementation)\n\n\u003cbr /\u003e\n\n| **Warning:** The alias [`tf.distribute.experimental.CollectiveCommunication`](../../../tf/distribute/experimental/CommunicationImplementation) is deprecated and will be removed in a future version. Use [`tf.distribute.experimental.CommunicationImplementation`](../../../tf/distribute/experimental/CommunicationImplementation) instead.\n\n- `AUTO`: Automatically chosen by Tensorflow.\n- `RING`: TensorFlow's ring algorithms for all-reduce and all-gather.\n- `NCCL`: NVIDIA®'s NCCL library. This is now only used for all-reduce on GPUs; all-reduce on CPU, all-gather and broadcast fallbacks to RING.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|------|----------------------------------------------|\n| AUTO | `\u003cCommunicationImplementation.AUTO: 'AUTO'\u003e` |\n| NCCL | `\u003cCommunicationImplementation.NCCL: 'NCCL'\u003e` |\n| RING | `\u003cCommunicationImplementation.RING: 'RING'\u003e` |\n\n\u003cbr /\u003e"]]