Skip to content

Commit

Permalink
Skip the train module only.
Browse files Browse the repository at this point in the history
  • Loading branch information
uazizTT committed Nov 12, 2024
1 parent 5333df2 commit 4ef3ceb
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 15 deletions.
3 changes: 2 additions & 1 deletion tests/models/autoencoder_linear/test_autoencoder_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_autoencoder_linear(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "Autoencoder (linear)"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/beit/test_beit_image_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def get_results_train(self, model, inputs, outputs):
["microsoft/beit-base-patch16-224", "microsoft/beit-large-patch16-224"],
)
def test_beit_image_classification(record_property, model_name, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
record_property("model_name", model_name)
record_property("mode", mode)

Expand Down
3 changes: 2 additions & 1 deletion tests/models/clip/test_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def get_results_train(self, model, inputs, outputs):
],
)
def test_clip(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "CLIP"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/deit/test_deit.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def get_results_train(self, model, inputs, outputs):
)
@pytest.mark.parametrize("model_name", ["facebook/deit-base-patch16-224"])
def test_deit(record_property, model_name, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
record_property("model_name", model_name)
record_property("mode", mode)

Expand Down
3 changes: 2 additions & 1 deletion tests/models/hardnet/test_hardnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_hardnet(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "HardNet"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/mlpmixer/test_mlpmixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_mlpmixer(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "MLPMixer"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/mnist/test_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_mnist_train(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "Mnist"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/openpose/test_openpose_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_openpose_v2(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "OpenPose V2"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/resnet/test_resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_resnet(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "ResNet18"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/resnet50/test_resnet50.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_resnet(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "ResNet50"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/segformer/test_segformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def get_results_train(self, model, inputs, outputs):
["train", "eval"],
)
def test_segformer(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "SegFormer"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
2 changes: 1 addition & 1 deletion tests/models/speecht5_tts/test_speecht5_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def set_model_eval(self, model):
["eval"],
)
def test_speecht5_tts(record_property, mode):
pytest.skip("crashes in lowering to stable hlo.")
pytest.skip() # crashes in lowering to stable hlo
model_name = "speecht5-tts"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/unet/test_unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_unet(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "U-Net"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/unet_brain/test_unet_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_unet_brain(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "Unet-brain"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down
3 changes: 2 additions & 1 deletion tests/models/unet_carvana/test_unet_carvana.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def _load_inputs(self):
["train", "eval"],
)
def test_unet_carvana(record_property, mode):
pytest.skip("module has train variant.")
if mode == "train":
pytest.skip()
model_name = "Unet-carvana"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down

0 comments on commit 4ef3ceb

Please sign in to comment.