MCPcopy Create free account
hub / github.com/KohakuBlueleaf/LyCORIS / restore

Method restore

lycoris/modules/full.py:122–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 self.org_bias = None
121 self.is_diff = False
122
123 def restore(self):
124 self.org_module[0].forward = self.org_forward
125 self.org_module[0].weight = nn.Parameter(self._org_weight[0])
126 if self.org_bias is not None:
127 self.org_module[0].bias = nn.Parameter(self.org_bias[0])
128
129 def custom_state_dict(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected