XLAAccelerator
- class lightning.fabric.accelerators.XLAAccelerator(*args, **kwargs)[source]
Bases:
Accelerator
Accelerator for XLA devices, normally TPUs.
Warning
Use of this accelerator beyond import and instantiation is experimental.
- static get_parallel_devices(devices)[source]
Gets parallel devices for the Accelerator.
- static parse_devices(devices)[source]
Accelerator device parsing logic.
- setup_device(device)[source]
Create and prepare the device for the current process.
- Return type: