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