class_docstr: The Accelerator base class for Lightning PyTorch.
  
  .. warning::  Writing your own accelerator is an :ref:`experimental <versioning:Experimental API>` feature.
docstr: Get stats for a given device.
  
  Args:
      device: device for which to get stats
  
  Returns:
      Dictionary of device stats
docstr_tok: ["Get","stats","for","a","given","device",".","Args",":","device",":","device","for","which","to","get","stats","Returns",":","Dictionary","of","device","stats"]
code: def get_device_stats(self, device: _DEVICE) -> Dict[str, Any]:
      """Get stats for a given device.
  
      Args:
          device: device for which to get stats
  
      Returns:
          Dictionary of device stats
  
      """
      raise NotImplementedError
  
file_path: pytorch-lightning/src/lightning/pytorch/accelerators/accelerator.py
imports: from abc import ABC
  from typing import Any, Dict
  import lightning.pytorch
  from lightning.fabric.accelerators.accelerator import Accelerator
  from lightning.fabric.utilities.types import _DEVICE
label_desc: Use image node_id 2 for calling the Accelerator obj's underlying member method code with example usage: obj.get_device_stats(device) without return types