diff --git a/inference-engine/src/vpu/myriad_plugin/myriad_infer_request.cpp b/inference-engine/src/vpu/myriad_plugin/myriad_infer_request.cpp index 27ecca826fafed..5192f1d2289e8f 100644 --- a/inference-engine/src/vpu/myriad_plugin/myriad_infer_request.cpp +++ b/inference-engine/src/vpu/myriad_plugin/myriad_infer_request.cpp @@ -266,7 +266,7 @@ void MyriadInferRequest::GetResult() { "Can not find tensor descriptor by plugin for {} output", ieBlobName); const auto& dynOutputDesc = descFromPlugin->second; - if (ieBlob->getTensorDesc().getLayout() != dynOutputDesc.getLayout()) { + if (ieBlob->getTensorDesc().getDims() != dynOutputDesc.getDims()) { ieBlob->deallocate(); ieBlob->getTensorDesc().reshape(dynOutputDesc.getDims(), dynOutputDesc.getLayout()); ieBlob->allocate();