jax.local_devices
Warning
This page was created from a pull request (#9655).
jax.local_devicesΒΆ
- jax.local_devices(process_index=None, backend=None, host_id=None)[source]ΒΆ
Like
jax.devices(), but only returns devices local to a given process.If
process_indexisNone, returns devices local to this process.- Parameters
process_index (
Optional[int]) β the integer index of the process. Process indices can be retrieved vialen(jax.process_count()).backend (
Union[str,Client,None]) β This is an experimental feature and the API is likely to change. Optional, a string representing the xla backend:'cpu','gpu', or'tpu'.
- Return type
- Returns
List of Device subclasses.