Skip to content

Commit

Permalink
NPUW Deref: NPU plugin - drop the reference to ov::Model (#27777)
Browse files Browse the repository at this point in the history
### Details:
 - Follow-up on #27767

### Tickets:
 - *ticket-id*

---------

Signed-off-by: Bogdan Pereanu <[email protected]>
Co-authored-by: Bogdan Pereanu <[email protected]>
  • Loading branch information
dmatveev and pereanub authored Nov 28, 2024
1 parent 59dbe35 commit a1aaa08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class CompiledModel final : public ICompiledModel {

void configure_stream_executors();

const std::shared_ptr<const ov::Model> _model;
Config _config;
Logger _logger;
const std::shared_ptr<IDevice> _device;
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/intel_npu/src/plugin/src/compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ CompiledModel::CompiledModel(const std::shared_ptr<const ov::Model>& model,
const std::shared_ptr<IGraph>& graph,
const Config& config)
: ICompiledModel(model, plugin),
_model(model),
_config(config),
_logger("CompiledModel", config.get<LOG_LEVEL>()),
_device(device),
Expand Down Expand Up @@ -77,7 +76,7 @@ void CompiledModel::export_model(std::ostream& stream) const {
}

std::shared_ptr<const ov::Model> CompiledModel::get_runtime_model() const {
return _model;
OPENVINO_NOT_IMPLEMENTED;
}

void CompiledModel::set_property(const ov::AnyMap& properties) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,11 @@ std::vector<std::string> 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
Expand Down

0 comments on commit a1aaa08

Please sign in to comment.