MCPcopy Create free account
hub / github.com/ChristianInterno/ReStraV / __init__

Method __init__

demo.py:12–20  ·  view source on GitHub ↗
(self, in_dim=21, h1=64, h2=32)

Source from the content-addressed store, hash-verified

10#Load model
11class MLP(nn.Module):
12 def __init__(self, in_dim=21, h1=64, h2=32):
13 super().__init__()
14 self.net = nn.Sequential(
15 nn.Linear(in_dim, h1),
16 nn.ReLU(),
17 nn.Linear(h1, h2),
18 nn.ReLU(),
19 nn.Linear(h2, 1)
20 )
21 def forward(self, x):
22 return self.net(x)
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected