mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Remove dead code line from efficientnet
This commit is contained in:
parent
0ca687f224
commit
d657e2cc0b
@ -277,7 +277,6 @@ class EdgeResidual(nn.Module):
|
|||||||
mid_chs = make_divisible(force_in_chs * exp_ratio)
|
mid_chs = make_divisible(force_in_chs * exp_ratio)
|
||||||
else:
|
else:
|
||||||
mid_chs = make_divisible(in_chs * exp_ratio)
|
mid_chs = make_divisible(in_chs * exp_ratio)
|
||||||
has_se = se_layer is not None and se_ratio > 0.
|
|
||||||
self.has_residual = (in_chs == out_chs and stride == 1) and not noskip
|
self.has_residual = (in_chs == out_chs and stride == 1) and not noskip
|
||||||
self.drop_path_rate = drop_path_rate
|
self.drop_path_rate = drop_path_rate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user