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

Method forward

models/sr3.py:310–315  ·  view source on GitHub ↗
(self, x, time_emb)

Source from the content-addressed store, hash-verified

308 self.res_conv = nn.Conv2d(dim, dim_out, 1) if dim != dim_out else nn.Identity()
309
310 def forward(self, x, time_emb):
311 b, c, h, w = x.shape
312 h = self.block1(x)
313 h = self.noise_func(h, time_emb)
314 h = self.block2(h)
315 return h + self.res_conv(x)
316
317
318class SelfAttention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected