e68081ee8c3830db03dada650383b7779dc5224f,models/resnet.py,PreActBottleneck,forward,#PreActBottleneck#,122

Before Change


            )

    def forward(self, x):
        out = self.conv1(F.relu(self.bn1(x)))
        out = self.conv2(F.relu(self.bn2(out)))
        out = self.conv3(F.relu(self.bn3(out)))
        out += self.shortcut(x)

After Change


            )

    def forward(self, x):
        out = F.relu(self.bn1(x))
        shortcut = self.shortcut(out)
        out = self.conv1(out)
        out = self.conv2(F.relu(self.bn2(out)))
        out = self.conv3(F.relu(self.bn3(out)))
        out += shortcut
        return out


class ResNet(nn.Module):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kuangliu/pytorch-cifar
Commit Name: e68081ee8c3830db03dada650383b7779dc5224f
Time: 2017-06-07
Author: kuang.liu@hotmail.com
File Name: models/resnet.py
Class Name: PreActBottleneck
Method Name: forward


Project Name: kuangliu/pytorch-cifar
Commit Name: 41e053e2061615c65395447ab947ebf938bcb53b
Time: 2017-04-17
Author: kuang.liu@hotmail.com
File Name: models/lenet.py
Class Name: LeNet
Method Name: forward


Project Name: kuangliu/pytorch-cifar
Commit Name: e68081ee8c3830db03dada650383b7779dc5224f
Time: 2017-06-07
Author: kuang.liu@hotmail.com
File Name: models/resnet.py
Class Name: PreActBlock
Method Name: forward