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
32e63417
Unverified
Commit
32e63417
authored
Jun 23, 2022
by
YosuaMichael
Committed by
GitHub
Jun 23, 2022
Browse files
Skip big models on both cpu and gpu test to fix CI(#6197)
parent
6155808f
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 @
32e63417
...
@@ -603,7 +603,7 @@ def test_classification_model(model_fn, dev):
...
@@ -603,7 +603,7 @@ def test_classification_model(model_fn, dev):
"input_shape"
:
(
1
,
3
,
224
,
224
),
"input_shape"
:
(
1
,
3
,
224
,
224
),
}
}
model_name
=
model_fn
.
__name__
model_name
=
model_fn
.
__name__
if
dev
==
"cuda"
and
SKIP_BIG_MODEL
and
model_name
in
skipped_big_models
:
if
SKIP_BIG_MODEL
and
model_name
in
skipped_big_models
:
pytest
.
skip
(
"Skipped to reduce memory usage. Set env var SKIP_BIG_MODEL=0 to enable test for this model"
)
pytest
.
skip
(
"Skipped to reduce memory usage. Set env var SKIP_BIG_MODEL=0 to enable test for this model"
)
kwargs
=
{
**
defaults
,
**
_model_params
.
get
(
model_name
,
{})}
kwargs
=
{
**
defaults
,
**
_model_params
.
get
(
model_name
,
{})}
num_classes
=
kwargs
.
get
(
"num_classes"
)
num_classes
=
kwargs
.
get
(
"num_classes"
)
...
...
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