MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / forward

Method forward

locationencoder/nn/fcnet.py:17–25  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

15 self.w2 = nn.Linear(self.l_size, self.l_size)
16
17 def forward(self, x):
18 y = self.w1(x)
19 y = self.nonlin1(y)
20 y = self.dropout1(y)
21 y = self.w2(y)
22 y = self.nonlin2(y)
23 out = x + y
24
25 return out
26
27class FCNet(nn.Module):
28 def __init__(self, num_inputs, num_classes, dim_hidden):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected