Shortcuts

IPUAccelerator

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

Bases: pytorch_lightning.accelerators.accelerator.Accelerator

Accelerator for IPUs.

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

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

static auto_device_count()[source]

Get the devices when set to auto.

Return type

int

get_device_stats(device)[source]

IPU device stats aren’t supported yet.

Return type

Dict[str, Any]

setup_optimizers(trainer)[source]
Raises

MisconfigurationException – If multiple optimizers are provided.

Return type

None