Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[PyOV] Compare the ROI tensor's element type with its parent's (#39072)

Daksha66fbe0ceaf5f
diff --git a/src/bindings/python/tests/test_runtime/test_tensor.py b/src/bindings/python/tests/test_runtime/test_tensor.py
index 9bd9acb10bf..129446a7aa0 100644
--- a/src/bindings/python/tests/test_runtime/test_tensor.py
+++ b/src/bindings/python/tests/test_runtime/test_tensor.py
@@ -252,7 +252,7 @@ def test_init_with_roi_tensor():
ov_tensor1 = ov.Tensor(array)
ov_tensor2 = ov.Tensor(ov_tensor1, [0, 0, 24, 24], [1, 3, 48, 48])
assert list(ov_tensor2.shape) == [1, 3, 24, 24]
- assert ov_tensor2.element_type == ov_tensor2.element_type
+ assert ov_tensor1.element_type == ov_tensor2.element_type
assert np.shares_memory(ov_tensor1.data, ov_tensor2.data)
assert np.array_equal(ov_tensor1.data[0:1, :, 24:, 24:], ov_tensor2.data)