(self, x)
| 206 | self.mlp = Mlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop) |
| 207 | |
| 208 | def forward(self, x): |
| 209 | x = x + self.drop_path(self.attn(self.norm1(x))) |
| 210 | x = x + self.drop_path(self.mlp(self.norm2(x))) |
| 211 | return x |
| 212 | |
| 213 | |
| 214 | class ConViT(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected