MCPcopy Create free account
hub / github.com/pytorch/examples / __init__

Method __init__

vae/main.py:47–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45
46class VAE(nn.Module):
47 def __init__(self):
48 super(VAE, self).__init__()
49
50 self.fc1 = nn.Linear(784, 400)
51 self.fc21 = nn.Linear(400, 20)
52 self.fc22 = nn.Linear(400, 20)
53 self.fc3 = nn.Linear(20, 400)
54 self.fc4 = nn.Linear(400, 784)
55
56 def encode(self, x):
57 h1 = F.relu(self.fc1(x))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected