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
14c3e175
You need to sign in or sign up before continuing.
Unverified
Commit
14c3e175
authored
Jun 30, 2022
by
Mashiro
Committed by
GitHub
Jun 30, 2022
Browse files
[Fix] num_channels can not be divisible by num_groups in test_build_norm_layer (#2085)
parent
c03bba00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_cnn/test_build_layers.py
tests/test_cnn/test_build_layers.py
+1
-1
No files found.
tests/test_cnn/test_build_layers.py
View file @
14c3e175
...
@@ -160,7 +160,7 @@ def test_build_norm_layer():
...
@@ -160,7 +160,7 @@ def test_build_norm_layer():
for
postfix
in
[
'_test'
,
1
]:
for
postfix
in
[
'_test'
,
1
]:
cfg
=
dict
(
type
=
type_name
)
cfg
=
dict
(
type
=
type_name
)
if
type_name
==
'GN'
:
if
type_name
==
'GN'
:
cfg
[
'num_groups'
]
=
2
cfg
[
'num_groups'
]
=
3
name
,
layer
=
build_norm_layer
(
cfg
,
3
,
postfix
=
postfix
)
name
,
layer
=
build_norm_layer
(
cfg
,
3
,
postfix
=
postfix
)
assert
name
==
abbr_mapping
[
type_name
]
+
str
(
postfix
)
assert
name
==
abbr_mapping
[
type_name
]
+
str
(
postfix
)
assert
isinstance
(
layer
,
module
)
assert
isinstance
(
layer
,
module
)
...
...
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