Merge pull request #685 from dyhan0920/master

Update rexnet.py
This commit is contained in:
Ross Wightman 2021-06-07 14:08:45 -07:00 committed by GitHub
commit 4907f8f70d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,11 @@ class LinearBottleneck(nn.Module):
x = self.se(x)
x = self.act_dw(x)
x = self.conv_pwl(x)
if self.drop_path is not None:
x = self.drop_path(x)
if self.use_shortcut:
x[:, 0:self.in_channels] += shortcut
if self.drop_path is not None:
x = self.drop_path(x)
x[:, 0:self.in_channels] += shortcut
return x