Skip to content

Commit

Permalink
Fix AnyMap pop (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wovchena authored Oct 17, 2024
1 parent 59f6dff commit 64502bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpp/src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ bool allow_to_enable_npuw_dq(const std::shared_ptr<ov::Model>& model) {

std::optional<ov::Any> pop_option(ov::AnyMap& config, const std::string& option_name) {
if (auto it = config.find(option_name); it != config.end()) {
std::optional<ov::Any> found = std::make_optional(it->second);
config.erase(it);
return std::make_optional(it->second);
return found;
}
return std::nullopt;
}
Expand Down

0 comments on commit 64502bb

Please sign in to comment.