Merge pull request #685 from dyhan0920/master

Update rexnet.py
pull/693/head
Ross Wightman 3 years ago committed by GitHub
commit 4907f8f70d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save