Skip to content

Commit

Permalink
NPUW: Fix idx != real_idx assert in failover
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatveev authored and AsyaPronina committed Nov 12, 2024
1 parent 2b1d2e8 commit bb85745
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,8 @@ void ov::npuw::JustInferRequest::run_subrequest_for_success(std::size_t idx, boo
LOG_INFO("- Trying next device...");

// Altering iterators here!! Contracts should be changed!
comp_model_desc.device_it++;
auto& proto_comp_model_desc = m_npuw_model->m_compiled_submodels[real_idx];
proto_comp_model_desc.device_it++;
if (!m_npuw_model->compile_for_success(real_idx)) {
OPENVINO_THROW("Failed to compile. No more devices are left!");
}
Expand Down

0 comments on commit bb85745

Please sign in to comment.