Skip to content

Commit 135f6ec

Browse files
YosuaMichaelfacebook-github-bot
authored andcommitted
[fbsync] Skip big models on both cpu and gpu test to fix CI(#6197)
Reviewed By: NicolasHug Differential Revision: D37450354 fbshipit-source-id: 997deeced50eea5a3df00ea74f55b6ceadf21caa
1 parent 4483704 commit 135f6ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def test_classification_model(model_fn, dev):
603603
"input_shape": (1, 3, 224, 224),
604604
}
605605
model_name = model_fn.__name__
606-
if dev == "cuda" and SKIP_BIG_MODEL and model_name in skipped_big_models:
606+
if SKIP_BIG_MODEL and model_name in skipped_big_models:
607607
pytest.skip("Skipped to reduce memory usage. Set env var SKIP_BIG_MODEL=0 to enable test for this model")
608608
kwargs = {**defaults, **_model_params.get(model_name, {})}
609609
num_classes = kwargs.get("num_classes")

0 commit comments

Comments
 (0)