Update xfails. (#500)

* Update test_models.py

* Fix formatting.
This commit is contained in:
Ean Garvey
2022-11-21 14:00:34 -06:00
committed by GitHub
parent d624940e12
commit 005ded3c6f

View File

@@ -276,15 +276,14 @@ class SharkModuleTest(unittest.TestCase):
and config["framework"] == "torch"
):
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/354")
if (
config["model_name"] == "facebook/convnext-tiny-224"
and device == "cuda"
):
if config["model_name"] == "facebook/convnext-tiny-224" and device in [
"cuda",
"cpu",
]:
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/311")
if (
config["model_name"] == "google/vit-base-patch16-224"
and device == "cuda"
):
if config[
"model_name"
] == "google/vit-base-patch16-224" and device in ["cuda", "cpu"]:
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/311")
if config["model_name"] == "resnet50" and device in [
"metal",
@@ -307,6 +306,7 @@ class SharkModuleTest(unittest.TestCase):
reason="Issue: https://github.com/iree-org/iree/issues/9971"
)
if config["model_name"] == "facebook/convnext-tiny-224" and device in [
"cpu",
"cuda",
"metal",
"vulkan",
@@ -340,6 +340,12 @@ class SharkModuleTest(unittest.TestCase):
pytest.xfail(
reason="Numerics issues -- https://github.com/nod-ai/SHARK/issues/344"
)
if (
config["model_name"] == "google/mobilebert-uncased"
and device == "cpu"
and config["framework"] == "tf"
):
pytest.xfail(reason="Fails during iree-compile.")
if (
config["model_name"] == "facebook/deit-small-distilled-patch16-224"
and device == "cuda"
@@ -402,10 +408,9 @@ class SharkModuleTest(unittest.TestCase):
"cpu",
]:
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/424")
if (
config["model_name"] == "dbmdz/convbert-base-turkish-cased"
and device == "cpu"
):
if config[
"model_name"
] == "dbmdz/convbert-base-turkish-cased" and device in ["cuda", "cpu"]:
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/463")
if (
config["model_name"]
@@ -429,6 +434,11 @@ class SharkModuleTest(unittest.TestCase):
pytest.xfail(
reason="Numerics issues: https://github.com/nod-ai/SHARK/issues/476"
)
if (
config["model_name"] == "microsoft/MiniLM-L12-H384-uncased"
and device == "cpu"
):
pytest.xfail(reason="Fails during iree-compile")
if (
config["model_name"] in ["albert-base-v2"]
and device == "cpu"