Remove a duplicate layer creation in byobnet.py

`self.conv2_kxk` is repeated in `byobnet.py`. Remove the duplicate code.
pull/898/head
leondgarse 3 years ago committed by GitHub
parent 3f9959cdd2
commit 51eaf9360d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save