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

Method __init__

locationencoder/nn/fcnet.py:8–15  ·  view source on GitHub ↗
(self, linear_size)

Source from the content-addressed store, hash-verified

6
7class ResLayer(nn.Module):
8 def __init__(self, linear_size):
9 super(ResLayer, self).__init__()
10 self.l_size = linear_size
11 self.nonlin1 = nn.ReLU(inplace=True)
12 self.nonlin2 = nn.ReLU(inplace=True)
13 self.dropout1 = nn.Dropout()
14 self.w1 = nn.Linear(self.l_size, self.l_size)
15 self.w2 = nn.Linear(self.l_size, self.l_size)
16
17 def forward(self, x):
18 y = self.w1(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected