MCPcopy Create free account
hub / github.com/OpenRL-Lab/Wandb_Tutorial / __init__

Method __init__

basic/test_pytorch.py:15–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14class Model(torch.nn.Module):
15 def __init__(self):
16 super(Model, self).__init__()
17 self.hid1 = torch.nn.Linear(4, 7) # 4-7-3
18 self.oupt = torch.nn.Linear(7, 3)
19
20 def forward(self, x):
21 z = torch.tanh(self.hid1(x))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected