# tf.experimental.dtensor.local_devices

<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#L46-L65) |

Returns a list of device specs configured on this client.

    tf.experimental.dtensor.local_devices(
        device_type: str, for_client_id: Optional[int] = None
    ) -> List[https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/compat/v1/DeviceSpec]