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
vision
Commits
fc63f828
Unverified
Commit
fc63f828
authored
Mar 20, 2022
by
Philip Meier
Committed by
GitHub
Mar 20, 2022
Browse files
fix mobilnet norm layer test (#5643)
* xfail mobilnet norm layer test * fix test
parent
297e2b87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_models.py
test/test_models.py
+1
-1
No files found.
test/test_models.py
View file @
fc63f828
...
...
@@ -406,7 +406,7 @@ def test_mobilenet_norm_layer(model_fn):
assert
any
(
isinstance
(
x
,
nn
.
BatchNorm2d
)
for
x
in
model
.
modules
())
def
get_gn
(
num_channels
):
return
nn
.
GroupNorm
(
32
,
num_channels
)
return
nn
.
GroupNorm
(
1
,
num_channels
)
model
=
model_fn
(
norm_layer
=
get_gn
)
assert
not
(
any
(
isinstance
(
x
,
nn
.
BatchNorm2d
)
for
x
in
model
.
modules
()))
...
...
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