# 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.11.1/tensorflow/dtensor/python/api.py#L410-L444) |

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.11/api_docs/python/tf/compat/v1/DeviceSpec]