MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / __init__

Method __init__

One_Day_One_GAN/day15/vae.py:41–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39
40class VAE(nn.Module):
41 def __init__(self):
42 super(VAE, self).__init__()
43
44 self.fc1 = nn.Linear(784, 400)
45 self.fc21 = nn.Linear(400, 20)
46 self.fc22 = nn.Linear(400, 20)
47 self.fc3 = nn.Linear(20, 400)
48 self.fc4 = nn.Linear(400, 784)
49
50 def encode(self, x):
51 h1 = F.relu(self.fc1(x))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected