Skip to content

Commit

Permalink
Skip big models on both cpu and gpu test to fix CI(#6197)
Browse files Browse the repository at this point in the history
  • Loading branch information
YosuaMichael authored Jun 23, 2022
1 parent 6155808 commit 32e6341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def test_classification_model(model_fn, dev):
"input_shape": (1, 3, 224, 224),
}
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")
kwargs = {**defaults, **_model_params.get(model_name, {})}
num_classes = kwargs.get("num_classes")
Expand Down

0 comments on commit 32e6341

Please sign in to comment.