From a1aaa081fb0ba1bb36288f723ac0a7927b4a06fc Mon Sep 17 00:00:00 2001 From: Dmitry Matveev Date: Thu, 28 Nov 2024 17:02:15 +0000 Subject: [PATCH] NPUW Deref: NPU plugin - drop the reference to ov::Model (#27777) ### Details: - Follow-up on https://github.com/openvinotoolkit/openvino/pull/27767 ### Tickets: - *ticket-id* --------- Signed-off-by: Bogdan Pereanu Co-authored-by: Bogdan Pereanu --- src/plugins/intel_npu/src/plugin/include/compiled_model.hpp | 1 - src/plugins/intel_npu/src/plugin/src/compiled_model.cpp | 3 +-- .../functional/shared_tests_instances/skip_tests_config.cpp | 5 +++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/intel_npu/src/plugin/include/compiled_model.hpp b/src/plugins/intel_npu/src/plugin/include/compiled_model.hpp index caaec951a22929..142bc15f606e68 100644 --- a/src/plugins/intel_npu/src/plugin/include/compiled_model.hpp +++ b/src/plugins/intel_npu/src/plugin/include/compiled_model.hpp @@ -61,7 +61,6 @@ class CompiledModel final : public ICompiledModel { void configure_stream_executors(); - const std::shared_ptr _model; Config _config; Logger _logger; const std::shared_ptr _device; diff --git a/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp b/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp index 4e86d32d2f72b1..506502c819d72e 100644 --- a/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp +++ b/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp @@ -30,7 +30,6 @@ CompiledModel::CompiledModel(const std::shared_ptr& model, const std::shared_ptr& graph, const Config& config) : ICompiledModel(model, plugin), - _model(model), _config(config), _logger("CompiledModel", config.get()), _device(device), @@ -77,7 +76,7 @@ void CompiledModel::export_model(std::ostream& stream) const { } std::shared_ptr CompiledModel::get_runtime_model() const { - return _model; + OPENVINO_NOT_IMPLEMENTED; } void CompiledModel::set_property(const ov::AnyMap& properties) { diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp index 7c7da4a9e23658..d62747be75c32d 100644 --- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp +++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests_config.cpp @@ -760,6 +760,11 @@ std::vector disabledTestPatterns() { ".*OVExecGraphSerializationTest.ExecutionGraph.*" }); + // get_runtime_model method is not supported on NPU + _skipRegistry.addPatterns("get_runtime_model method is not supported on NPU", { + ".*OVClassModelOptionalTestP.CompileModelCreateDefaultExecGraphResult.*", + }); + return _skipRegistry; }(); // clang-format on