(self, x)
| 318 | self.proj = nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size, bias=bias) |
| 319 | |
| 320 | def forward(self, x): |
| 321 | x = self.proj(x) |
| 322 | x = x.flatten(2).transpose(1, 2) # NCHW -> NLC |
| 323 | return x |
| 324 | |
| 325 | |
| 326 | class OmniGenOriginalModel(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected