(self, x)
| 254 | self.proj = nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size) |
| 255 | |
| 256 | def forward(self, x): |
| 257 | B, C, H, W = x.shape |
| 258 | x = self.proj(x).flatten(2).transpose(1, 2) |
| 259 | return x |
| 260 | |
| 261 | |
| 262 | class VisionTransformer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected