f4c14d1daf86c6c05d8d36c53bc8e7587f00c206,implementations/ccgan/models.py,UNetDown,__init__,#UNetDown#,10
Before Change
nn.LeakyReLU(0.2, inplace=True) ]
if normalize:
model += [nn.BatchNorm2d(out_size, 0.8)]
if dropout:
model += [nn.Dropout(dropout)]
self.model = nn.Sequential(*model)
def forward(self, x):
return self.model(x)
After Change
super(UNetDown, self).__init__()
model = [nn.Conv2d(in_size, out_size, 4, stride=2, padding=1, bias=False)]
if normalize:
model.append(nn.BatchNorm2d(out_size, 0.8))
model.append(nn.LeakyReLU(0.2))
if dropout:
model.append(nn.Dropout(dropout))
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: eriklindernoren/PyTorch-GAN
Commit Name: f4c14d1daf86c6c05d8d36c53bc8e7587f00c206
Time: 2018-05-14
Author: eriklindernoren@gmail.com
File Name: implementations/ccgan/models.py
Class Name: UNetDown
Method Name: __init__
Project Name: gpleiss/efficient_densenet_pytorch
Commit Name: 8e788a24fa135b6a6542dc312dfcad1f8621a832
Time: 2017-09-11
Author: rzhengphy@gmail.com
File Name: models/densenet_efficient_multi_gpu.py
Class Name: _DenseLayer
Method Name: __init__
Project Name: eriklindernoren/PyTorch-GAN
Commit Name: eea200bad437f6a87486c3ddb4b2f88b8c46acef
Time: 2018-04-25
Author: eriklindernoren@gmail.com
File Name: implementations/bicyclegan/models.py
Class Name: UNetDown
Method Name: __init__
Project Name: prlz77/ResNeXt.pytorch
Commit Name: c8647205f42b90550ad78db5af5f70e15faf1c80
Time: 2017-04-03
Author: pau.rodri1@gmail.com
File Name: models/model.py
Class Name: ResNeXtBottleneck
Method Name: __init__
Project Name: gpleiss/efficient_densenet_pytorch
Commit Name: 8e788a24fa135b6a6542dc312dfcad1f8621a832
Time: 2017-09-11
Author: rzhengphy@gmail.com
File Name: models/densenet_efficient_multi_gpu.py
Class Name: TransitionBlock
Method Name: __init__