e3fe7fca004b2fd3eab4e69cfa91c032863b8031,pytorch/models/nasnet.py,ReductionCell0,__init__,#ReductionCell0#Any#Any#Any#Any#,468
Before Change
super(ReductionCell0, self).__init__()
self.conv_prev_1x1 = nn.Sequential()
self.conv_prev_1x1.add_module("relu", nn.ReLU())
self.conv_prev_1x1.add_module("conv", nn.Conv2d(in_channels_left, out_channels_left, 1, stride=1, bias=False))
self.conv_prev_1x1.add_module("bn", nn.BatchNorm2d(out_channels_left, eps=0.001, momentum=0.1, affine=True))
self.conv_1x1 = nn.Sequential()
self.conv_1x1.add_module("relu", nn.ReLU())
self.conv_1x1.add_module("conv", nn.Conv2d(in_channels_right, out_channels_right, 1, stride=1, bias=False))
self.conv_1x1.add_module("bn", nn.BatchNorm2d(out_channels_right, eps=0.001, momentum=0.1, affine=True))
self.comb_iter_0_left = BranchSeparablesReduction(out_channels_right, out_channels_right, 5, 2, 2, bias=False)
self.comb_iter_0_right = BranchSeparablesReduction(out_channels_right, out_channels_right, 7, 2, 3, bias=False)
self.comb_iter_1_left = MaxPoolPad()
self.comb_iter_1_right = BranchSeparablesReduction(out_channels_right, out_channels_right, 7, 2, 3, bias=False)
self.comb_iter_2_left = AvgPoolPad()
self.comb_iter_2_right = BranchSeparablesReduction(out_channels_right, out_channels_right, 5, 2, 2, bias=False)
self.comb_iter_3_right = nn.AvgPool2d(3, stride=1, padding=1, count_include_pad=False)
self.comb_iter_4_left = BranchSeparablesReduction(out_channels_right, out_channels_right, 3, 1, 1, bias=False)
self.comb_iter_4_right = MaxPoolPad()
After Change
self.conv_1x1 = nn.Sequential()
self.conv_1x1.add_module("relu", nn.ReLU())
self.conv_1x1.add_module("conv", conv1x1(
in_channels=in_channels_right,
out_channels=out_channels_right))
self.conv_1x1.add_module("bn", nasnet_batch_norm(channels=out_channels_right))
self.comb_iter_0_left = BranchSeparablesReduction(out_channels_right, out_channels_right, 5, 2, 2, bias=False)
self.comb_iter_0_right = BranchSeparablesReduction(out_channels_right, out_channels_right, 7, 2, 3, bias=False)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 12
Instances
Project Name: osmr/imgclsmob
Commit Name: e3fe7fca004b2fd3eab4e69cfa91c032863b8031
Time: 2018-08-20
Author: osemery@gmail.com
File Name: pytorch/models/nasnet.py
Class Name: ReductionCell0
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: e3fe7fca004b2fd3eab4e69cfa91c032863b8031
Time: 2018-08-20
Author: osemery@gmail.com
File Name: pytorch/models/nasnet.py
Class Name: ReductionCell0
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: e3fe7fca004b2fd3eab4e69cfa91c032863b8031
Time: 2018-08-20
Author: osemery@gmail.com
File Name: pytorch/models/nasnet.py
Class Name: FirstCell
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: e3fe7fca004b2fd3eab4e69cfa91c032863b8031
Time: 2018-08-20
Author: osemery@gmail.com
File Name: pytorch/models/nasnet.py
Class Name: ReductionCell1
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: e3fe7fca004b2fd3eab4e69cfa91c032863b8031
Time: 2018-08-20
Author: osemery@gmail.com
File Name: pytorch/models/nasnet.py
Class Name: NormalCell
Method Name: __init__