CUDAAccelerator¶
- class lightning.pytorch.accelerators.CUDAAccelerator¶
Bases:
AcceleratorAccelerator for NVIDIA CUDA devices.
- get_device_stats(device)¶
Gets stats for the given GPU device.
- static get_parallel_devices(devices)¶
Gets parallel devices for the Accelerator.
- classmethod register_accelerators(accelerator_registry)¶
Register the accelerator with the registry.
- Return type:
- setup(trainer)¶
Called by the Trainer to set up the accelerator before the model starts running on the device.
- setup_device(device)¶
- Raises:
MisconfigurationException – If the selected device is not GPU.
- Return type: