Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alinlab/SelfPatch
/ forward
Method
forward
selfpatch_vision_transformer.py:48–49 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
46
self.drop_prob = drop_prob
47
48
def
forward(self, x):
49
return
drop_path(x, self.drop_prob, self.training)
50
51
52
class
Mlp(nn.Module):
Callers
nothing calls this directly
Calls
1
drop_path
Function · 0.70
Tested by
no test coverage detected