Skip to content

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

[NPU] Fix test for page aligned tensor (#37665)

Xin Wang38a575de45fd
diff --git a/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cpp b/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cpp
index d881ce09479..cfa1d5286e1 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cpp
@@ -461,18 +461,12 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithDecreasedSize) {
"inference, but got: "
<< logCapture.str();
- logCapture.clear();
ov::Tensor inTensor1 = ov::test::utils::create_and_fill_tensor(model->input().get_element_type(), shape, 100, 0);
setInputInferAndCompare(model,
testContext.reqDynamic,
testContext.reqReference,
inTensor1,
"CompileAndInferWithDecreasedSize_third");
- // A new host tensor with the same shape should still reuse the command list.
- ASSERT_TRUE(logContains(logCapture, "Reuse command list without update since no tensor change detected"))
- << "Expected log to contain 'Reuse command list without update since no tensor change detected' for third "
- "inference, but got: "
- << logCapture.str();
logCapture.clear();
ov::Shape shape2 = {1, 720, 720, 16};
@@ -532,18 +526,12 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithIncreasedSize) {
"inference, but got: "
<< logCapture.str();
- logCapture.clear();
ov::Tensor inTensor1 = ov::test::utils::create_and_fill_tensor(model->input().get_element_type(), shape, 100, 0);
setInputInferAndCompare(model,
testContext.reqDynamic,
testContext.reqReference,
inTensor1,
"CompileAndInferWithIncreasedSize_third");
- // A new host tensor with the same shape should still reuse the command list.
- ASSERT_TRUE(logContains(logCapture, "Reuse command list without update since no tensor change detected"))
- << "Expected log to contain 'Reuse command list without update since no tensor change detected' for third "
- "inference, but got: "
- << logCapture.str();
logCapture.clear();
ov::Shape shape2 = {1, 720, 1280, 16};