MCPcopy Create free account
hub / github.com/MichSchli/AVeriTeC / freeze_params

Function freeze_params

models/JustificationGenerationModule.py:14–16  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

12from torchmetrics.classification import F1Score
13
14def freeze_params(model):
15 for layer in model.parameters():
16 layer.requires_grade = False
17
18class JustificationGenerationModule(pl.LightningModule):
19

Callers 2

__init__Method · 0.85
freeze_embedsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected