Shortcuts

IPUPrecisionPlugin

class pytorch_lightning.plugins.precision.IPUPrecisionPlugin(precision)[source]

Bases: pytorch_lightning.plugins.precision.precision_plugin.PrecisionPlugin

backward(model, *args, **kwargs)[source]

Performs the actual backpropagation.

Parameters
  • model (LightningModule) – the model to be optimized

  • closure_loss – the loss value obtained from the closure

  • optimizer – current optimizer being used. None if using manual optimization

Return type

None

clip_gradients(optimizer, clip_val=0.0, gradient_clip_algorithm=<GradClipAlgorithmType.NORM: 'norm'>)[source]

Clips the gradients.

Return type

None

optimizer_step(model, optimizer, optimizer_idx, closure, **kwargs)[source]

IPUs handle the optimizer step internally.

Return type

None