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

Method forward

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

Source from the content-addressed store, hash-verified

67 return torch.sigmoid(self.fc4(h3))
68
69 def forward(self, x):
70 mu, logvar = self.encode(x.view(-1, 784))
71 z = self.reparameterize(mu, logvar)
72 return self.decode(z), mu, logvar
73
74
75model = VAE().to(device)

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.95
reparameterizeMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected