Shortcuts

LayerSync

class pytorch_lightning.plugins.LayerSync[source]

Bases: abc.ABC

Abstract base class for creating plugins that wrap layers of a model with synchronization logic for multiprocessing.

abstract apply(model)[source]

Override this method to apply synchronization to the layers of this model.

Return type

Module

abstract revert(model)[source]

Override this method to undo all modifications made in apply().

Return type

Module

You are viewing an outdated version of PyTorch Lightning Docs

Click here to view the latest version→