提交 a881c7a7 编写于 作者: Y Yang Nie 提交者: Tingquan Gao

remove useless comments

上级 d76defde
...@@ -204,7 +204,6 @@ class GroupConv(nn.Layer): ...@@ -204,7 +204,6 @@ class GroupConv(nn.Layer):
self.inp = inp self.inp = inp
self.oup = oup self.oup = oup
self.groups = groups self.groups = groups
# print('inp: %d, oup:%d, g:%d' % (inp, oup, self.groups[0]))
self.conv = nn.Sequential( self.conv = nn.Sequential(
nn.Conv2D( nn.Conv2D(
inp, oup, 1, groups=self.groups[0], bias_attr=False), inp, oup, 1, groups=self.groups[0], bias_attr=False),
...@@ -320,8 +319,6 @@ class DYShiftMax(nn.Layer): ...@@ -320,8 +319,6 @@ class DYShiftMax(nn.Layer):
squeeze = _make_divisible(inp // reduction, 4) squeeze = _make_divisible(inp // reduction, 4)
if squeeze < 4: if squeeze < 4:
squeeze = 4 squeeze = 4
# print('reduction: {}, squeeze: {}/{}'.format(reduction, inp, squeeze))
# print('init-a: {}, init-b: {}'.format(init_a, init_b))
self.fc = nn.Sequential( self.fc = nn.Sequential(
nn.Linear(inp, squeeze), nn.Linear(inp, squeeze),
...@@ -331,7 +328,6 @@ class DYShiftMax(nn.Layer): ...@@ -331,7 +328,6 @@ class DYShiftMax(nn.Layer):
self.g = g[1] self.g = g[1]
if self.g != 1 and expansion: if self.g != 1 and expansion:
self.g = inp // self.g self.g = inp // self.g
# print('group shuffle: {}, divide group: {}'.format(self.g, expansion))
self.gc = inp // self.g self.gc = inp // self.g
index = paddle.to_tensor(list(range(inp))).reshape([1, inp, 1, 1]) index = paddle.to_tensor(list(range(inp))).reshape([1, inp, 1, 1])
index = index.reshape([1, self.g, self.gc, 1, 1]) index = index.reshape([1, self.g, self.gc, 1, 1])
...@@ -391,8 +387,6 @@ class DYMicroBlock(nn.Layer): ...@@ -391,8 +387,6 @@ class DYMicroBlock(nn.Layer):
activation_cfg=None): activation_cfg=None):
super().__init__() super().__init__()
# print(dy)
self.identity = stride == 1 and inp == oup self.identity = stride == 1 and inp == oup
y1, y2, y3 = dy y1, y2, y3 = dy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册