Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AtlasAnalyticsLab/AdaFisher
/ Residual
Class
Residual
Image_Classification/src/models/swin.py:18–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
17
18
class
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
25
26
27
class
PreNorm(nn.Module):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected