# tf.experimental.dtensor.num_clients

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/dtensor/python/config.py#L100-L105) |

Returns the number of clients in this DTensor cluster.

    tf.experimental.dtensor.num_clients() -> int