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

Method __init__

Image_Classification/src/models/swin.py:19–21  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

17
18class Residual(nn.Module):
19 def __init__(self, fn):
20 super().__init__()
21 self.fn = fn
22
23 def forward(self, x, **kwargs):
24 return self.fn(x, **kwargs) + x

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected