jax.Device#
- class jax.Device#
A descriptor of an available device.
Subclasses are used to represent specific types of devices, e.g. CPUs, GPUs. Subclasses may have additional properties specific to that device type.
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)Attributes
addressable_memoriesReturns all the memories that a device can address.
client(self) -> object
default_memoryReturns the default memory of a device.
device_kind(self) -> str
get_stream_for_external_ready_eventshost_idDeprecated; please use process_index
idInteger ID of this device.
live_bufferslocal_hardware_idOpaque hardware ID, e.g., the CUDA device number.
memorymemory_statsReturns memory statistics for this device keyed by name.
platform(self) -> str
process_indexInteger index of this device's process.
task_idDeprecated; please use process_index