Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AtlasAnalyticsLab/AdaFisher
/ __init__
Method
__init__
Image_Classification/src/models/swin.py:28–31 ·
view source on GitHub ↗
(self, dim, fn)
Source
from the content-addressed store, hash-verified
26
27
class
PreNorm(nn.Module):
28
def
__init__(self, dim, fn):
29
super().__init__()
30
self.norm = nn.LayerNorm(dim)
31
self.fn = fn
32
33
def
forward(self, x, **kwargs):
34
return
self.fn(self.norm(x), **kwargs)
Callers
8
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected