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

Method __init__

Adversarial_AutoEncoder/net/Decoder.py:12–22  ·  view source on GitHub ↗
(self,in_features = 784,out_features = 128)

Source from the content-addressed store, hash-verified

10
11class Decoder(torch.nn.Module):
12 def __init__(self,in_features = 784,out_features = 128):
13 super(Decoder, self).__init__()
14 self.decoder = torch.nn.Sequential(
15 torch.nn.Linear(in_features=out_features, out_features=256),
16 torch.nn.ReLU(),
17
18 torch.nn.Linear(in_features=256, out_features=512),
19 torch.nn.ReLU(),
20
21 torch.nn.Linear(in_features=512, out_features=in_features)
22 )
23 def forward(self,x):
24 out = self.decoder(x)
25 out = out.view(-1,28,28)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected