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

Method forward

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

Source from the content-addressed store, hash-verified

12 self.displacement = displacement
13
14 def forward(self, x):
15 return torch.roll(x, shifts=(self.displacement, self.displacement), dims=(1, 2))
16
17
18class Residual(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected