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)addressable_memories(self)default_memory(self)get_stream_for_external_ready_events(self)live_buffers(self)memory(self, kind)memory_stats(self)Returns memory statistics for this device keyed by name.
transfer_from_outfeed(self, arg0)transfer_to_infeed(self, arg0)Attributes
clientdevice_kindhost_idDeprecated; please use process_index
idInteger ID of this device.
local_hardware_idOpaque hardware ID, e.g., the CUDA device number.
platformprocess_indexInteger index of this device's process.
task_idDeprecated; please use process_index