570cd4f66bdf9c3e4b4bb8fbc31fa24b0bd7cdbd,implementations/aae/aae.py,Discriminator,__init__,#Discriminator#,82

Before Change


    def __init__(self):
        super(Discriminator, self).__init__()

        layers = [  nn.Linear(opt.latent_dim, 512),
                    nn.LeakyReLU(0.2, inplace=True),
                    nn.Linear(512, 256),
                    nn.LeakyReLU(0.2, inplace=True),
                    nn.Linear(256, 1),
                    nn.Sigmoid() ]

        self.model = nn.Sequential(*layers)

    def forward(self, latent):
        validity = self.model(latent)

After Change


    def __init__(self):
        super(Discriminator, self).__init__()

        self.model = nn.Sequential(
            nn.Linear(opt.latent_dim, 512),
            nn.LeakyReLU(0.2, inplace=True),
            nn.Linear(512, 256),
            nn.LeakyReLU(0.2, inplace=True),
            nn.Linear(256, 1),
            nn.Sigmoid()
        )

    def forward(self, latent):
        validity = self.model(latent)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 13

Instances


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 570cd4f66bdf9c3e4b4bb8fbc31fa24b0bd7cdbd
Time: 2018-04-22
Author: eriklindernoren@live.se
File Name: implementations/aae/aae.py
Class Name: Discriminator
Method Name: __init__


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 570cd4f66bdf9c3e4b4bb8fbc31fa24b0bd7cdbd
Time: 2018-04-22
Author: eriklindernoren@live.se
File Name: implementations/aae/aae.py
Class Name: Discriminator
Method Name: __init__


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 570cd4f66bdf9c3e4b4bb8fbc31fa24b0bd7cdbd
Time: 2018-04-22
Author: eriklindernoren@live.se
File Name: implementations/aae/aae.py
Class Name: Encoder
Method Name: __init__


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: e4dedd15f0dd909f48385867b874519e57ea0363
Time: 2018-04-23
Author: eriklindernoren@gmail.com
File Name: implementations/aae/aae.py
Class Name: Encoder
Method Name: __init__


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 570cd4f66bdf9c3e4b4bb8fbc31fa24b0bd7cdbd
Time: 2018-04-22
Author: eriklindernoren@live.se
File Name: implementations/gan/gan.py
Class Name: Discriminator
Method Name: __init__