Shortcuts

CPUAccelerator

class pytorch_lightning.accelerators.CPUAccelerator(precision_plugin, training_type_plugin)[source]

Bases: pytorch_lightning.accelerators.accelerator.Accelerator

Accelerator for CPU devices.

Parameters
  • precision_plugin (PrecisionPlugin) – the plugin to handle precision-specific parts

  • training_type_plugin (TrainingTypePlugin) – the plugin to handle different training routines

setup(trainer, model)[source]
Raises

MisconfigurationException – If AMP is used with CPU, or if the selected device is not CPU.

Return type

None