Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alinlab/SelfPatch
/ forward
Method
forward
segmentation/backbones/vit_SelfPatch.py:91–94 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
89
return
getattr(self, self.norm2_name)
90
91
def
forward(self, x):
92
x = self.attn(self.norm1(x), identity=x)
93
x = self.ffn(self.norm2(x), identity=x)
94
return
x
95
96
97
@BACKBONES.register_module()
Callers
nothing calls this directly
Calls
2
norm1
Method · 0.95
norm2
Method · 0.95
Tested by
no test coverage detected