Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
a02a4815
Unverified
Commit
a02a4815
authored
Apr 02, 2022
by
Rockey
Committed by
GitHub
Apr 02, 2022
Browse files
[Fix] GELU got an unexpected keyword argument 'inplace' (#1847)
parent
f2c50930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/cnn/bricks/conv_module.py
mmcv/cnn/bricks/conv_module.py
+1
-1
No files found.
mmcv/cnn/bricks/conv_module.py
View file @
a02a4815
...
@@ -157,7 +157,7 @@ class ConvModule(nn.Module):
...
@@ -157,7 +157,7 @@ class ConvModule(nn.Module):
act_cfg_
=
act_cfg
.
copy
()
act_cfg_
=
act_cfg
.
copy
()
# nn.Tanh has no 'inplace' argument
# nn.Tanh has no 'inplace' argument
if
act_cfg_
[
'type'
]
not
in
[
if
act_cfg_
[
'type'
]
not
in
[
'Tanh'
,
'PReLU'
,
'Sigmoid'
,
'HSigmoid'
,
'Swish'
'Tanh'
,
'PReLU'
,
'Sigmoid'
,
'HSigmoid'
,
'Swish'
,
'GELU'
]:
]:
act_cfg_
.
setdefault
(
'inplace'
,
inplace
)
act_cfg_
.
setdefault
(
'inplace'
,
inplace
)
self
.
activate
=
build_activation_layer
(
act_cfg_
)
self
.
activate
=
build_activation_layer
(
act_cfg_
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment