MCPcopy Create free account
hub / github.com/SooLab/CGFormer / forward

Method forward

model/layers.py:27–33  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

25 self.drop = nn.Dropout(drop)
26
27 def forward(self, x):
28 x = self.fc1(x)
29 x = self.act(x)
30 x = self.drop(x)
31 x = self.fc2(x)
32 x = self.drop(x)
33 return x
34
35def conv_layer(in_dim, out_dim, kernel_size=1, padding=0, stride=1):
36 return nn.Sequential(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected