4d62be58743bd7a9a7b9f50525bab3f87b1e5b20,hypergan/discriminators/dcgan_discriminator.py,DCGANDiscriminator,create,#DCGANDiscriminator#,14
Before Change
return []
def create(self):
self.net = nn.Sequential(nn.Linear(64*64*3, 1))
def forward(self, x):
return self.net(x.view(self.gan.batch_size(), -1)).view(self.gan.batch_size(),1)
After Change
return []
def create(self):
self.net = nn.Sequential(
nn.Conv2d(3, 64, 3, 2, 1),
nn.ReLU(),
nn.Conv2d(64, 128, 3, 2, 1),
nn.ReLU(),
nn.Conv2d(128, 256, 3, 2, 1),
nn.ReLU(),
nn.Conv2d(256, 512, 3, 2, 1),
nn.ReLU()
)
self.linear = nn.Linear(4*4*512, 1)
def forward(self, x):
net = self.net(x).view(self.gan.batch_size(), -1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 4d62be58743bd7a9a7b9f50525bab3f87b1e5b20
Time: 2020-02-06
Author: martyn@255bits.com
File Name: hypergan/discriminators/dcgan_discriminator.py
Class Name: DCGANDiscriminator
Method Name: create
Project Name: arraiy/torchgeometry
Commit Name: 7a1084089da1b116d55dae0f8df871328e7d7a16
Time: 2019-01-11
Author: kaplanonu@gmail.com
File Name: test/test_jit_tracing.py
Class Name: LocalizationNetwork
Method Name: __init__
Project Name: mariogeiger/se3cnn
Commit Name: 5f3cddb62a332dc7d98dfacebf94d10bf7874600
Time: 2018-01-17
Author: geiger.mario@gmail.com
File Name: arch/example.py
Class Name: CNN
Method Name: __init__