mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
commit
4907f8f70d
@ -89,9 +89,10 @@ class LinearBottleneck(nn.Module):
|
|||||||
x = self.se(x)
|
x = self.se(x)
|
||||||
x = self.act_dw(x)
|
x = self.act_dw(x)
|
||||||
x = self.conv_pwl(x)
|
x = self.conv_pwl(x)
|
||||||
|
if self.use_shortcut:
|
||||||
if self.drop_path is not None:
|
if self.drop_path is not None:
|
||||||
x = self.drop_path(x)
|
x = self.drop_path(x)
|
||||||
if self.use_shortcut:
|
|
||||||
x[:, 0:self.in_channels] += shortcut
|
x[:, 0:self.in_channels] += shortcut
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user