ea5306a4e8fc9700022f93c3731fb1711e248a8e,gluoncv/model_zoo/resnext.py,Block,__init__,#Block#Any#Any#Any#Any#Any#Any#Any#Any#Any#,60
Before Change
group_width = cardinality * D
self.body = nn.HybridSequential(prefix="")
self.body.add(nn.Conv2D(group_width, kernel_size=1, use_bias=False))
self.body.add(norm_layer(**({} if norm_kwargs is None else norm_kwargs)))
self.body.add(nn.Activation("relu"))
self.body.add(nn.Conv2D(group_width, kernel_size=3, strides=stride, padding=1,
After Change
for :class:`mxnet.gluon.contrib.nn.SyncBatchNorm`.
def __init__(self, channels, cardinality, bottleneck_width, stride,
downsample=False, last_gamma=False, use_se=False, avg_down=False,
norm_layer=BatchNorm, norm_kwargs=None, **kwargs):
super(Block, self).__init__(**kwargs)
D = int(math.floor(channels * (bottleneck_width / 64)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/gluon-cv
Commit Name: ea5306a4e8fc9700022f93c3731fb1711e248a8e
Time: 2019-08-09
Author: jerryzh.cn@gmail.com
File Name: gluoncv/model_zoo/resnext.py
Class Name: Block
Method Name: __init__
Project Name: dmlc/gluon-cv
Commit Name: 88f5086454759b4e213013cb1bc177df183b43b2
Time: 2018-07-18
Author: 13162287+ijkguo@users.noreply.github.com
File Name: gluoncv/model_zoo/resnetv1b.py
Class Name: BottleneckV1b
Method Name: __init__
Project Name: dmlc/gluon-cv
Commit Name: 863f19bc86cda0f785b97c39a360fbd8cbd1b0e1
Time: 2018-08-13
Author: hetong007@gmail.com
File Name: gluoncv/model_zoo/resnetv1b.py
Class Name: BasicBlockV1b
Method Name: __init__