8ad8d52406deafea4feb0680aad351fabc97e25a,proxyless_nas/layers.py,MBInvertedConvLayer,__init__,#MBInvertedConvLayer#,456
Before Change
// depthwise convolution
pad = get_same_padding(self.kernel_size)
self.depth_conv = nn.Sequential(OrderedDict({
"conv": nn.Conv2d(feature_dim, feature_dim, kernel_size, stride, pad, groups=feature_dim, bias=False),
"bn": nn.BatchNorm2d(feature_dim),
"relu": nn.ReLU6(inplace=True),
}))
// pointwise linear
self.point_linear = OrderedDict({
After Change
// depthwise convolution
pad = get_same_padding(self.kernel_size)
self.depth_conv = nn.Sequential(OrderedDict([
("conv", nn.Conv2d(feature_dim, feature_dim, kernel_size, stride, pad, groups=feature_dim, bias=False)),
("bn", nn.BatchNorm2d(feature_dim)),
("relu", nn.ReLU6(inplace=True)),
]))
// pointwise linear
self.point_linear = OrderedDict([
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: MIT-HAN-LAB/ProxylessNAS
Commit Name: 8ad8d52406deafea4feb0680aad351fabc97e25a
Time: 2018-12-17
Author: zemlanikin_@mail.ru
File Name: proxyless_nas/layers.py
Class Name: MBInvertedConvLayer
Method Name: __init__