class_docstr: Accelerator for CPU devices.
class_docstr_tok: ["Accelerator","for","CPU","devices","."]
docstr: Raises:
      ValueError:
          If the selected device is not CPU.
docstr_tok: ["Raises",":","ValueError",":","If","the","selected","device","is","not","CPU","."]
code: def setup_device(self, device: torch.device) -> None:
      """
      Raises:
          ValueError:
              If the selected device is not CPU.
      """
      if device.type != "cpu":
          raise ValueError(
              f"Device should be CPU, got {device} instead."
          )
  
file_path: pytorch-lightning/src/lightning/fabric/accelerators/cpu.py
imports: from typing import List, Union
  import torch
  from typing_extensions import override
  from lightning.fabric.accelerators.accelerator import Accelerator
  from lightning.fabric.accelerators.registry import _AcceleratorRegistry
label_desc: Use image node_id 1 for calling the CPUAccelerator obj's underlying member method code with example usage: obj.setup_device(device) without return types