Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alinlab/SelfPatch
/ forward
Method
forward
segmentation/backbones/mit.py:239–242 ·
view source on GitHub ↗
(self, x, hw_shape)
Source
from the content-addressed store, hash-verified
237
act_cfg=act_cfg)
238
239
def
forward(self, x, hw_shape):
240
x = self.attn(self.norm1(x), hw_shape, identity=x)
241
x = self.ffn(self.norm2(x), hw_shape, identity=x)
242
return
x
243
244
245
@BACKBONES.register_module()
Callers
nothing calls this directly
Calls
2
norm1
Method · 0.95
norm2
Method · 0.95
Tested by
no test coverage detected