MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / forward

Method forward

VAE_AutoEncoder/net/DenseVAE.py:24–31  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

22 self.z_log_var = torch.nn.Linear(in_features=256,out_features=latent_dim)
23
24 def forward(self,x):
25 x = x.view(-1,784)
26 x = self.initial_dense(x)
27
28 z_mean = self.z_mean(x)
29 z_log_var = self.z_log_var(x)
30
31 return z_mean,z_log_var
32
33class Decoder(torch.nn.Module):
34 def __init__(self,hidden_dim = 256,latent_dim = 2,num_features = 784):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected