<br />

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

Returns the number of devices of device_type configured on this client.

```python
tf.experimental.dtensor.num_local_devices(
    device_type: str
) -> int
```