File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -421,8 +421,8 @@ def _fuse_bn(
421421def convolutional_stem (
422422 in_chs : int ,
423423 out_chs : int ,
424- inference_mode : bool = False ,
425424 act_layer : nn .Module = nn .GELU ,
425+ inference_mode : bool = False
426426) -> nn .Sequential :
427427 """Build convolutional stem with MobileOne blocks.
428428
@@ -1124,8 +1124,8 @@ def __init__(
11241124 self .stem = convolutional_stem (
11251125 in_chans ,
11261126 embed_dims [0 ],
1127+ act_layer ,
11271128 inference_mode ,
1128- act_layer
11291129 )
11301130
11311131 # Build the main stages of the network architecture
@@ -1187,6 +1187,7 @@ def __init__(
11871187 group_size = 1 ,
11881188 inference_mode = inference_mode ,
11891189 use_se = True ,
1190+ act_layer = act_layer ,
11901191 num_conv_branches = 1 ,
11911192 )
11921193 self .head = ClassifierHead (
You can’t perform that action at this time.
0 commit comments