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

Method forward

timm/models/levit.py:222–225  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

220 self.resolution = resolution
221
222 def forward(self, x):
223 B, N, C = x.shape
224 x = x.view(B, self.resolution, self.resolution, C)[:, ::self.stride, ::self.stride]
225 return x.reshape(B, -1, C)
226
227
228class Attention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected