0ed52b170f4a8e2feaa7619895e4a22fd3842cac,models/resnet.py,BasicBlock,__init__,#BasicBlock#Any#Any#Any#,25

Before Change



    def __init__(self, in_planes, planes, stride=1):
        super(BasicBlock, self).__init__()
        self.conv1 = conv3x3(in_planes, planes, stride)
        self.bn1 = nn.BatchNorm2d(planes)
        self.conv2 = conv3x3(planes, planes)
        self.bn2 = nn.BatchNorm2d(planes)

        self.shortcut = nn.Sequential()
        if stride != 1 or in_planes != self.expansion*planes:

After Change



    def __init__(self, in_planes, planes, stride=1):
        super(BasicBlock, self).__init__()
        self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.bn1 = nn.BatchNorm2d(planes)
        self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=1, padding=1, bias=False)
        self.bn2 = nn.BatchNorm2d(planes)

        self.shortcut = nn.Sequential()
        if stride != 1 or in_planes != self.expansion*planes:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: kuangliu/pytorch-cifar
Commit Name: 0ed52b170f4a8e2feaa7619895e4a22fd3842cac
Time: 2017-09-19
Author: kuang.liu@hotmail.com
File Name: models/resnet.py
Class Name: BasicBlock
Method Name: __init__


Project Name: tomgoldstein/loss-landscape
Commit Name: 510fa3a99429cc363f13392fe7b7dc200d1418f1
Time: 2018-09-17
Author: haoli@cs.umd.edu
File Name: cifar10/models/resnet.py
Class Name: BasicBlock_noshortcut
Method Name: __init__


Project Name: kuangliu/pytorch-cifar
Commit Name: 0ed52b170f4a8e2feaa7619895e4a22fd3842cac
Time: 2017-09-19
Author: kuang.liu@hotmail.com
File Name: models/resnet.py
Class Name: BasicBlock
Method Name: __init__


Project Name: tomgoldstein/loss-landscape
Commit Name: 510fa3a99429cc363f13392fe7b7dc200d1418f1
Time: 2018-09-17
Author: haoli@cs.umd.edu
File Name: cifar10/models/resnet.py
Class Name: BasicBlock
Method Name: __init__