MCPcopy Index your code
hub / github.com/CompVis/diff2flow / freeze

Function freeze

diff2flow/helpers.py:56–58  ·  view source on GitHub ↗
(model: nn.Module)

Source from the content-addressed store, hash-verified

54
55
56def freeze(model: nn.Module):
57 for param in model.parameters():
58 param.requires_grad = False
59
60
61def exists(val):

Callers 2

__init__Method · 0.90
add_lora_to_unetMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected