MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / forward

Method forward

Image_Classification/src/models/swin.py:189–194  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

187 ]))
188
189 def forward(self, x):
190 x = self.patch_partition(x)
191 for regular_block, shifted_block in self.layers:
192 x = regular_block(x)
193 x = shifted_block(x)
194 return x.permute(0, 3, 1, 2)
195
196
197class SwinTransformer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected