MCPcopy Create free account
hub / github.com/TimSeizinger/Bokehlicious / forward

Method forward

method/nn_util.py:333–338  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

331 self.norm = nn.LayerNorm(embed_dim) if norm_layer is not None else None
332
333 def forward(self, x):
334 x = x.permute(0, 2, 3, 1) # (b c h w) -> (b h w c)
335 if self.norm is not None:
336 # print("Using norm layer")
337 x = self.norm(x)
338 return x
339
340
341class PatchUnEmbedIR(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected