Skip to content

Commit d946287

Browse files
authored
Update xfails for torchvision models. (huggingface#310)
1 parent 885b096 commit d946287

File tree

12 files changed

+57
-12
lines changed

12 files changed

+57
-12
lines changed

tank/alexnet_torch/alexnet_torch_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ def test_module(self, dynamic, device):
7070
pytest.xfail(
7171
reason="Assert Error:https://github.com/iree-org/iree/issues/10075"
7272
)
73+
if dynamic == True:
74+
pytest.xfail(
75+
reason="https://github.com/nod-ai/SHARK/issues/309"
76+
)
77+
7378
self.module_tester.create_and_check_module(dynamic, device)
7479

7580

tank/facebook_convnext-tiny-224_tf/facebook_convnext-tiny-224_tf_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def configure(self, pytestconfig):
4949

5050
@parameterized.expand(param_list, name_func=shark_test_name_func)
5151
def test_module(self, dynamic, device):
52+
53+
if device in ["gpu", "cuda"]:
54+
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/311")
55+
5256
self.module_tester.create_and_check_module(dynamic, device)
5357

5458

tank/facebook_deit-small-distilled-patch16-224_torch/facebook_deit-small-distilled-patch16-224_torch_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def test_module(self, dynamic, device):
4848
pytest.skip(
4949
reason="Dynamic Test not Supported: mlir file not found"
5050
)
51+
if device in ["gpu", "cuda"]:
52+
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/311")
53+
5154
self.module_tester.create_and_check_module(dynamic, device)
5255

5356

tank/google_vit-base-patch16-224_tf/google_vit-base-patch16-224_tf_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def configure(self, pytestconfig):
4646

4747
@parameterized.expand(param_list, name_func=shark_test_name_func)
4848
def test_module(self, dynamic, device):
49+
50+
if device in ["gpu", "cuda"]:
51+
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/311")
52+
4953
self.module_tester.create_and_check_module(dynamic, device)
5054

5155

tank/google_vit-base-patch16-224_torch/google_vit-base-patch16-224_torch_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def test_module(self, dynamic, device):
4848
pytest.skip(
4949
reason="Dynamic tests not supported. mlir file not found."
5050
)
51+
52+
if device in ["gpu", "cuda"]:
53+
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/311")
54+
5155
self.module_tester.create_and_check_module(dynamic, device)
5256

5357

tank/mobilenet_v3_small_torch/mobilenet_v3_small_torch_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ def test_module(self, dynamic, device):
6767
elif device in ["vulkan", "metal"]:
6868
if dynamic == False:
6969
pytest.xfail(reason="stuck in the pipeline.")
70+
if dynamic == True:
71+
pytest.xfail(
72+
reason="https://github.com/nod-ai/SHARK/issues/309"
73+
)
74+
7075
self.module_tester.create_and_check_module(dynamic, device)
7176

7277

tank/nvidia_mit-b0_torch/nvidia_mit-b0_torch_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def test_module(self, dynamic, device):
4848
pytest.skip(
4949
reason="Dynamic tests not supported. mlir file not found."
5050
)
51+
52+
if device in ["gpu", "cuda"]:
53+
pytest.xfail(reason="https://github.com/nod-ai/SHARK/issues/311")
54+
5155
self.module_tester.create_and_check_module(dynamic, device)
5256

5357

tank/resnet101_torch/resnet101_torch_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ def configure(self, pytestconfig):
6565

6666
@parameterized.expand(param_list, name_func=shark_test_name_func)
6767
def test_module(self, dynamic, device):
68+
if device in ["metal", "vulkan"]:
69+
if dynamic == True:
70+
pytest.xfail(
71+
reason="https://github.com/nod-ai/SHARK/issues/309"
72+
)
73+
6874
self.module_tester.create_and_check_module(dynamic, device)
6975

7076

tank/resnet18_torch/resnet18_torch_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ def configure(self, pytestconfig):
6464

6565
@parameterized.expand(param_list, name_func=shark_test_name_func)
6666
def test_module(self, dynamic, device):
67+
68+
if device in ["metal", "vulkan"]:
69+
if dynamic == True:
70+
pytest.xfail(
71+
reason="https://github.com/nod-ai/SHARK/issues/309"
72+
)
73+
6774
self.module_tester.create_and_check_module(dynamic, device)
6875

6976

tank/resnet50_torch/resnet50_torch_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ def test_module(self, dynamic, device):
6969
if device in ["metal", "vulkan"]:
7070
if "m1-moltenvk-macos" in get_vulkan_triple_flag():
7171
pytest.xfail(reason="M1: CompilerToolError | M2: Pass")
72+
if dynamic == True:
73+
pytest.xfail(
74+
reason="https://github.com/nod-ai/SHARK/issues/309"
75+
)
76+
7277
self.module_tester.create_and_check_module(dynamic, device)
7378

7479

0 commit comments

Comments
 (0)