From a881c7a7fa0dc1c1d488a13170206ef2e690eb71 Mon Sep 17 00:00:00 2001 From: Yang Nie Date: Thu, 24 Nov 2022 01:05:45 +0800 Subject: [PATCH] remove useless comments --- ppcls/arch/backbone/model_zoo/micronet.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ppcls/arch/backbone/model_zoo/micronet.py b/ppcls/arch/backbone/model_zoo/micronet.py index 42503ed8..24f6ca1d 100644 --- a/ppcls/arch/backbone/model_zoo/micronet.py +++ b/ppcls/arch/backbone/model_zoo/micronet.py @@ -204,7 +204,6 @@ class GroupConv(nn.Layer): self.inp = inp self.oup = oup self.groups = groups - # print('inp: %d, oup:%d, g:%d' % (inp, oup, self.groups[0])) self.conv = nn.Sequential( nn.Conv2D( inp, oup, 1, groups=self.groups[0], bias_attr=False), @@ -320,8 +319,6 @@ class DYShiftMax(nn.Layer): squeeze = _make_divisible(inp // reduction, 4) if 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( nn.Linear(inp, squeeze), @@ -331,7 +328,6 @@ class DYShiftMax(nn.Layer): self.g = g[1] if self.g != 1 and expansion: self.g = inp // self.g - # print('group shuffle: {}, divide group: {}'.format(self.g, expansion)) self.gc = inp // self.g index = paddle.to_tensor(list(range(inp))).reshape([1, inp, 1, 1]) index = index.reshape([1, self.g, self.gc, 1, 1]) @@ -391,8 +387,6 @@ class DYMicroBlock(nn.Layer): activation_cfg=None): super().__init__() - # print(dy) - self.identity = stride == 1 and inp == oup y1, y2, y3 = dy -- GitLab