Fix ClampFusion for case when min is greater then max (#21509)
This commit is contained in:
@@ -42,7 +42,7 @@ class TestClamp(PytorchLayerTest):
|
||||
return aten_clamp(minimum, maximum, as_tensors, op_type), ref_net, op_name
|
||||
|
||||
@pytest.mark.parametrize("minimum,maximum",
|
||||
[(0., 1.), (-0.5, 1.5), (None, 10.), (None, -10.), (10., None), (-10., None), (100, 200)])
|
||||
[(0., 1.), (-0.5, 1.5), (None, 10.), (None, -10.), (10., None), (-10., None), (100, 200), (1.0, 0.0)])
|
||||
@pytest.mark.parametrize("as_tensors", [True, False])
|
||||
@pytest.mark.parametrize("op_type", ["clamp", "clamp_"])
|
||||
@pytest.mark.nightly
|
||||
@@ -50,11 +50,6 @@ class TestClamp(PytorchLayerTest):
|
||||
self._test(*self.create_model(minimum, maximum, as_tensors,
|
||||
op_type), ie_device, precision, ir_version)
|
||||
|
||||
@pytest.mark.xfail(reason='OpenVINO clamp does not support min > max')
|
||||
def test_clamp_min_greater(self, ie_device, precision, ir_version):
|
||||
self._test(*self.create_model(1.0, 0.0),
|
||||
ie_device, precision, ir_version)
|
||||
|
||||
|
||||
class TestClampMin(PytorchLayerTest):
|
||||
def _prepare_input(self):
|
||||
|
||||
Reference in New Issue
Block a user