class_docstr: The Accelerator base class.
  
  An Accelerator is meant to deal with one type of hardware.
  
  .. warning::  Writing your own accelerator is an :ref:`experimental <versioning:Experimental API>` feature.
class_docstr_tok: ["The","Accelerator","base","class",".","An","Accelerator","is","meant","to","deal","with","one","type","of","hardware",".","..","warning",":",":","Writing","your","own","accelerator","is","an",":","ref",":","`","experimental","<","versioning",":","Experimental","API",">","`","feature","."]
docstr: Create and prepare the device for the current process.
docstr_tok: ["Create","and","prepare","the","device","for","the","current","process","."]
code: def setup_device(self, device: torch.device) -> None:
      """Create and prepare the device for the current process."""
  
file_path: pytorch-lightning/src/lightning/fabric/accelerators/accelerator.py
imports: from abc import ABC, abstractmethod
  from typing import Any
  import torch
  from lightning.fabric.accelerators.registry import _AcceleratorRegistry
label_desc: Use image node_id 1 for calling the Accelerator obj's underlying member method code with example usage: obj.setup_device(device) without return types