Skip to content

Commit

Permalink
Xfail bitwise tests with out for numpy>=2.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
  • Loading branch information
rkazants committed Oct 2, 2024
1 parent 3fe5d82 commit 91a038b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/layer_tests/pytorch_tests/test_bitwise_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import numpy as np
import pytest
import torch
from packaging import version

from pytorch_layer_test_class import PytorchLayerTest, skip_if_export


Expand Down Expand Up @@ -69,10 +71,12 @@ def forward_not_out(self, tensor_a, out):
)
@pytest.mark.parametrize("out", [False, skip_if_export(True)])
def test_bitwise_mixed_dtypes(
self, op_type, out, lhs_dtype, rhs_dtype, lhs_shape, rhs_shape, ie_device, precision, ir_version
self, op_type, out, lhs_dtype, rhs_dtype, lhs_shape, rhs_shape, ie_device, precision, ir_version
):
if ie_device == "GPU" and (lhs_dtype != "bool" or rhs_dtype != "bool"):
pytest.xfail(reason="bitwise ops are not supported on GPU")
if out and version.parse(np.__version__) >= version.parse("2.0.0"):
pytest.xfail(reason="CVS-154082: incorrect handling out type")
self._test(
*self.create_model(op_type, out),
ie_device,
Expand Down

0 comments on commit 91a038b

Please sign in to comment.