dc83da1abf2009c36603af3fa5c719cbccd10d59,models/resnext.py,ResNeXtBottleneck,__init__,#ResNeXtBottleneck#Any#Any#Any#Any#Any#,19
Before Change
super().__init__(inplanes, planes, stride, downsample)
mid_planes = cardinality * planes // 32
self.conv1 = nn.Conv3d(inplanes, mid_planes, kernel_size=1, bias=False)
self.bn1 = nn.BatchNorm3d(mid_planes)
self.conv2 = nn.Conv3d(
mid_planes,
mid_planes,
kernel_size=3,
stride=stride,
padding=1,
groups=cardinality,
bias=False)
self.bn2 = nn.BatchNorm3d(mid_planes)
self.conv3 = nn.Conv3d(
mid_planes, planes * self.expansion, kernel_size=1, bias=False)
class ResNeXt(resnet.ResNet):
After Change
groups=cardinality,
bias=False)
self.bn2 = nn.BatchNorm3d(mid_planes)
self.conv3 = conv1x1x1(mid_planes, planes * self.expansion)
class ResNeXt(ResNet):
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/resnext.py
Class Name: ResNeXtBottleneck
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__
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__