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

Method __init__

GANCode/dModel.py:15–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14class Discriminator(torch.nn.Module):
15 def __init__(self):
16 super(Discriminator, self).__init__()
17 self.fc = torch.nn.Sequential(
18 torch.nn.Linear(in_features=784,out_features=512),
19 torch.nn.LeakyReLU(),
20 torch.nn.Linear(in_features=512,out_features=256),
21 torch.nn.LeakyReLU(),
22 torch.nn.Linear(in_features=256,out_features=1),
23 torch.nn.Sigmoid()
24 )
25 def forward(self,input):
26 x = input.view(-1,784)
27 x = self.fc(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected