MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / forward

Method forward

timm/models/convit.py:208–211  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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
214class ConViT(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected