MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / MLP

Class MLP

models.py:62–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62class MLP(nn.Module):
63 def __init__(self, in_channel, out_channel):
64 super(MLP, self).__init__()
65 self.l1 = nn.Linear(in_features=in_channel, out_features=256)
66 self.l2 = nn.Linear(in_features=256, out_features=256)
67 self.l3 = nn.Linear(in_features=256, out_features=out_channel)
68 # self.dropout = nn.Dropout(p=0.5)
69 self.relu = nn.ReLU()
70
71 def forward(self, x):
72 x = self.l1(x)
73 x = self.relu(x)
74 x = self.l2(x)
75 x = self.relu(x)
76 x = self.l3(x)
77 return x
78
79
80class PAG(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected