(self, x)
| 127 | self.proj = nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size) |
| 128 | |
| 129 | def forward(self, x): |
| 130 | B, C, H, W = x.shape |
| 131 | x = self.proj(x).flatten(2).transpose(1, 2) |
| 132 | return x |
| 133 | |
| 134 | |
| 135 | class VisionTransformer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected