dc83da1abf2009c36603af3fa5c719cbccd10d59,models/resnet.py,Bottleneck,__init__,#Bottleneck#,60

Before Change


    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super().__init__()

        self.conv1 = nn.Conv3d(inplanes, planes, kernel_size=1, bias=False)
        self.bn1 = nn.BatchNorm3d(planes)
        self.conv2 = conv3x3x3(planes, planes, stride)
        self.bn2 = nn.BatchNorm3d(planes)
        self.conv3 = nn.Conv3d(
            planes, planes * self.expansion, kernel_size=1, bias=False)
        self.bn3 = nn.BatchNorm3d(planes * self.expansion)
        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride

After Change


    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super().__init__()

        self.conv1 = conv1x1x1(inplanes, planes)
        self.bn1 = nn.BatchNorm3d(planes)
        self.conv2 = conv3x3x3(planes, planes, stride)
        self.bn2 = nn.BatchNorm3d(planes)
        self.conv3 = conv1x1x1(planes, planes * self.expansion)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: dc83da1abf2009c36603af3fa5c719cbccd10d59
Time: 2018-11-21
Author: kensho.hara@aist.go.jp
File Name: models/resnet.py
Class Name: Bottleneck
Method Name: __init__


Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: dc83da1abf2009c36603af3fa5c719cbccd10d59
Time: 2018-11-21
Author: kensho.hara@aist.go.jp
File Name: models/pre_act_resnet.py
Class Name: PreActivationBottleneck
Method Name: __init__


Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: dc83da1abf2009c36603af3fa5c719cbccd10d59
Time: 2018-11-21
Author: kensho.hara@aist.go.jp
File Name: models/resnet.py
Class Name: Bottleneck
Method Name: __init__


Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: dc83da1abf2009c36603af3fa5c719cbccd10d59
Time: 2018-11-21
Author: kensho.hara@aist.go.jp
File Name: models/resnext.py
Class Name: ResNeXtBottleneck
Method Name: __init__