Accelerator¶ class lightning.pytorch.accelerators.Accelerator[소스]¶ 기반 클래스: lightning.fabric.accelerators.accelerator.Accelerator, abc.ABC The Accelerator base class for Lightning PyTorch. 경고 Writing your own accelerator is an experimental feature. get_device_stats(device)[소스]¶ Get stats for a given device. 매개변수 device¶ (Union[device, str, int]) – device for which to get stats 반환 형식 Dict[str, Any] 반환 Dictionary of device stats setup(trainer)[소스]¶ Setup plugins for the trainer fit and creates optimizers. 매개변수 trainer¶ (Trainer) – the trainer instance 반환 형식 None