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

Method __init__

VAE_AutoEncoder/net/DenseVAE.py:34–44  ·  view source on GitHub ↗
(self,hidden_dim = 256,latent_dim = 2,num_features = 784)

Source from the content-addressed store, hash-verified

32
33class Decoder(torch.nn.Module):
34 def __init__(self,hidden_dim = 256,latent_dim = 2,num_features = 784):
35 super(Decoder, self).__init__()
36 self.initial_dense = torch.nn.Sequential(
37 torch.nn.Linear(in_features=latent_dim,out_features=hidden_dim),
38 torch.nn.ReLU(inplace=True),
39
40 torch.nn.Linear(in_features=hidden_dim,out_features=hidden_dim * 2),
41 torch.nn.ReLU(inplace=True)
42 )
43
44 self.imgs = torch.nn.Linear(in_features=hidden_dim * 2,out_features=num_features)
45
46 def forward(self,x):
47 x = self.initial_dense(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected