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

Method encode

vae/main.py:56–58  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

54 self.fc4 = nn.Linear(400, 784)
55
56 def encode(self, x):
57 h1 = F.relu(self.fc1(x))
58 return self.fc21(h1), self.fc22(h1)
59
60 def reparameterize(self, mu, logvar):
61 std = torch.exp(0.5*logvar)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected