(self, x)
| 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 | |
| 341 | class PatchUnEmbedIR(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected