MCPcopy Create free account
hub / github.com/294coder/Dif-PAN / forward

Method forward

models/sr3.py:377–384  ·  view source on GitHub ↗
(self, x, cond)

Source from the content-addressed store, hash-verified

375 nn.init.zeros_(self.body[-1].bias)
376
377 def forward(self, x, cond):
378 cond = self.body(cond)
379 scale, shift = cond.chunk(2, dim=1)
380
381 x = self.x_conv(x)
382
383 x = x * (1 + scale) + shift
384 return x
385
386
387class FreqCondInjection(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected