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: Clean up any state created by the accelerator.
docstr_tok: ["Clean","up","any","state","created","by","the","accelerator","."]
code: def teardown(self) -> None:
      """Clean up any state created by the accelerator."""
  
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 2 for calling the Accelerator obj's underlying member method code with example usage: obj.teardown() without return types