MCPcopy Create free account
hub / github.com/AIRMEC/HECTOR / __init__

Method __init__

model.py:97–102  ·  view source on GitHub ↗
(self, dim_in, dim_out, act_layer=nn.ReLU, dropout=True, p_dropout_fc=0.25)

Source from the content-addressed store, hash-verified

95
96class FC_block(nn.Module):
97 def __init__(self, dim_in, dim_out, act_layer=nn.ReLU, dropout=True, p_dropout_fc=0.25):
98 super(FC_block, self).__init__()
99
100 self.fc = nn.Linear(dim_in, dim_out)
101 self.act = act_layer()
102 self.drop = nn.Dropout(p_dropout_fc) if dropout else nn.Identity()
103
104 def forward(self, x):
105 x = self.fc(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected