dgs.utils.torchtools.close_all_layers

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

Closes / Freezes all layers in this model, e.g., for evaluation.

Parameters:

model – A torch module.