class_docstr: Accelerator for XLA devices, normally TPUs.
  
  .. warning::  Use of this accelerator beyond import and instantiation is experimental.
class_docstr_tok: ["Accelerator","for","XLA","devices",",","normally","TPUs",".","..","warning",":",":","Use","of","this","accelerator","beyond","import","and","instantiation","is","experimental","."]
code: def __init__(self, *args: Any, **kwargs: Any) -> None:
      if not _XLA_AVAILABLE:
          raise ModuleNotFoundError(str(_XLA_AVAILABLE))
      if not _using_pjrt():
          raise RuntimeError(
              "The XLA XRT runtime is not supported anymore."
          )
      super().__init__(*args, **kwargs)
  
imports: import functools
  from typing import Any, List, Union
  import torch
  from lightning_utilities.core.imports import RequirementCache
  from typing_extensions import override
  from lightning.fabric.accelerators.accelerator import Accelerator
  from lightning.fabric.accelerators.registry import _AcceleratorRegistry
  from lightning.fabric.utilities.device_parser import _check_data_type
label_desc: Use image node_id 1 to create a new XLAAccelerator object from inherited base classes: Accelerator with example: obj = XLAAccelerator()