MCPcopy Create free account
hub / github.com/CompVis/diff2flow / forward

Method forward

diff2flow/lora.py:76–80  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

74 p.detach().zero_()
75
76 def forward(self, x):
77 w_out = self.W(x)
78 a_out = self.A(x)
79 b_out = self.B(a_out)
80 return w_out + b_out * self.lora_scale
81
82
83class LoRAConv(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected