Skip Reduce* ops layer tests due to ORT error (#16730)

* skip reduce mean

* skip other reduce ops
This commit is contained in:
Mateusz Bencer authored and GitHub committed 2023-04-04 14:50:34 +02:00
1 parent 1ee0c151ea
commit d4b394c1b6
2 files changed
+9

No files matched your search

@@ -124,6 +124,7 @@ class TestReduce(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.precommit
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceMax, ticket: 107652')
def test_reduce_max_precommit(self, params, keep_dims, ie_device, precision, ir_version,
temp_dir, use_old_api):
self._test(*self.create_reduce(**params, op='ReduceMax', keep_dims=keep_dims,
@@ -133,6 +134,7 @@ class TestReduce(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.nightly
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceMax, ticket: 107652')
def test_reduce_max(self, params, keep_dims, ie_device, precision, ir_version, temp_dir, use_old_api):
self._test(*self.create_reduce(**params, op='ReduceMax', keep_dims=keep_dims,
ir_version=ir_version),
@@ -160,6 +162,7 @@ class TestReduce(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.precommit
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceMean, ticket: 107652')
def test_reduce_mean_precommit(self, params, keep_dims, ie_device, precision, ir_version,
temp_dir, use_old_api):
self._test(*self.create_reduce(**params, op='ReduceMean', keep_dims=keep_dims,
@@ -170,6 +173,7 @@ class TestReduce(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.nightly
@pytest.mark.precommit
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceMean, ticket: 107652')
def test_reduce_mean(self, params, keep_dims, ie_device, precision, ir_version, temp_dir,
use_old_api):
self._test(*self.create_reduce(**params, op='ReduceMean', keep_dims=keep_dims,
@@ -179,6 +183,7 @@ class TestReduce(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("params", test_data_precommit)
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.precommit
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceMin, ticket: 107652')
def test_reduce_min_precommit(self, params, keep_dims, ie_device, precision, ir_version,
temp_dir, use_old_api):
self._test(*self.create_reduce(**params, op='ReduceMin', keep_dims=keep_dims,
@@ -188,6 +193,7 @@ class TestReduce(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("params", test_data)
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.nightly
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceMin, ticket: 107652')
def test_reduce_min(self, params, keep_dims, ie_device, precision, ir_version, temp_dir, use_old_api):
self._test(*self.create_reduce(**params, op='ReduceMin', keep_dims=keep_dims,
ir_version=ir_version),
@@ -220,6 +220,7 @@ class TestReduceL1L2(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.parametrize("reduce_p", [1, 2])
@pytest.mark.precommit
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceL1/ReduceL2, ticket: 107652')
def test_reduce_lp_precommit(self, params, keep_dims, reduce_p, ie_device, precision,
ir_version, temp_dir, use_old_api):
self._test(*self.create_reduce_lp(**params, keep_dims=keep_dims, reduce_p=reduce_p,
@@ -230,6 +231,7 @@ class TestReduceL1L2(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.parametrize("reduce_p", [1, 2])
@pytest.mark.nightly
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceL1/ReduceL2, ticket: 107652')
def test_reduce_lp(self, params, keep_dims, reduce_p, ie_device, precision, ir_version,
temp_dir, use_old_api):
if ie_device == 'GPU':
@@ -242,6 +244,7 @@ class TestReduceL1L2(OnnxRuntimeLayerTest):
@pytest.mark.parametrize("keep_dims", [True, False])
@pytest.mark.parametrize("reduce_p", [1, 2])
@pytest.mark.precommit
@pytest.mark.skip(reason='ONNX Runtime error: Error Unrecognized attribute: axes for operator ReduceL1/ReduceL2, ticket: 107652')
def test_reduce_lp_const_precommit(self, params, keep_dims, reduce_p, ie_device, precision,
ir_version, temp_dir, use_old_api):
self._test(