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

Method __init__

Image_Classification/src/models/swin.py:10–12  ·  view source on GitHub ↗
(self, displacement)

Source from the content-addressed store, hash-verified

8
9class CyclicShift(nn.Module):
10 def __init__(self, displacement):
11 super().__init__()
12 self.displacement = displacement
13
14 def forward(self, x):
15 return torch.roll(x, shifts=(self.displacement, self.displacement), dims=(1, 2))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected