From 51eaf9360d28528fea924fa037236fa993bc81f8 Mon Sep 17 00:00:00 2001 From: leondgarse Date: Thu, 30 Sep 2021 18:30:48 +0800 Subject: [PATCH] Remove a duplicate layer creation in byobnet.py `self.conv2_kxk` is repeated in `byobnet.py`. Remove the duplicate code. --- timm/models/byobnet.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/timm/models/byobnet.py b/timm/models/byobnet.py index edce355a..59105c44 100644 --- a/timm/models/byobnet.py +++ b/timm/models/byobnet.py @@ -797,9 +797,6 @@ class BottleneckBlock(nn.Module): self.shortcut = nn.Identity() self.conv1_1x1 = layers.conv_norm_act(in_chs, mid_chs, 1) - self.conv2_kxk = layers.conv_norm_act( - mid_chs, mid_chs, kernel_size, stride=stride, dilation=dilation[0], - groups=groups, drop_block=drop_block) self.conv2_kxk = layers.conv_norm_act( mid_chs, mid_chs, kernel_size, stride=stride, dilation=dilation[0], groups=groups, drop_block=drop_block)