MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / forward

Method forward

selfpatch_vision_transformer.py:62–68  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

60 self.drop = nn.Dropout(drop)
61
62 def forward(self, x):
63 x = self.fc1(x)
64 x = self.act(x)
65 x = self.drop(x)
66 x = self.fc2(x)
67 x = self.drop(x)
68 return x
69
70
71

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected