dgs.utils.torchtools.open_all_layers

dgs.utils.torchtools.open_all_layers(model: TorchMod | BaseMod) None[source]

Opens all layers in this model for training.

Parameters:

model – A torch module.

Examples

>>> from dgs.utils.torchtools import open_all_layers
>>> open_all_layers(model)