714b645f8b5e999798bf69f42c2e39f180842107,baseline.py,ResNet,__init__,#ResNet#,64
Before Change
self.avgpool = nn.AdaptiveAvgPool2d(1)
self.fc = nn.Linear(64, num_classes)
for m in self.modules():
if isinstance(m, nn.Conv2d):
n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
m.weight.data.normal_(0, math.sqrt(2. / n))
elif isinstance(m, nn.BatchNorm2d):
m.weight.data.fill_(1)
m.bias.data.zero_()
def _make_layer(self, block, planes, blocks, stride):
strides = [stride] + [1] * (blocks - 1)
layers = []
After Change
self.avgpool = nn.AdaptiveAvgPool2d(1)
self.fc = nn.Linear(64, num_classes)
self.initialize()
def initialize(self):
for m in self.modules():
if isinstance(m, nn.Conv2d):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: moskomule/senet.pytorch
Commit Name: 714b645f8b5e999798bf69f42c2e39f180842107
Time: 2018-03-06
Author: hataya@keio.jp
File Name: baseline.py
Class Name: ResNet
Method Name: __init__
Project Name: moskomule/senet.pytorch
Commit Name: 714b645f8b5e999798bf69f42c2e39f180842107
Time: 2018-03-06
Author: hataya@keio.jp
File Name: baseline.py
Class Name: ResNet
Method Name: __init__
Project Name: suavecode/SUAVE
Commit Name: f1e90a193196c50498c4be8b2dce87ab2f0c4e6a
Time: 2019-04-09
Author: timdmacdo@gmail.com
File Name: trunk/SUAVE/Analyses/Aerodynamics/Supersonic_Zero.py
Class Name: Supersonic_Zero
Method Name: initialize
Project Name: suavecode/SUAVE
Commit Name: f1e90a193196c50498c4be8b2dce87ab2f0c4e6a
Time: 2019-04-09
Author: timdmacdo@gmail.com
File Name: trunk/SUAVE/Analyses/Aerodynamics/Fidelity_Zero.py
Class Name: Fidelity_Zero
Method Name: initialize