Skip to content

Commit

Permalink
Fix lvalue error
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrupa-intel committed Sep 2, 2024
1 parent 6aef555 commit 87f7219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontends/ir/src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ InputModel::Ptr FrontEnd::load_impl(const std::vector<ov::Any>& variants) const
}

#if defined(OPENVINO_ENABLE_UNICODE_PATH_SUPPORT) && defined(_WIN32)
return create_input_model(ov::util::wstring_to_string(weights_path));
std::string weights_path_str = ov::util::wstring_to_string(weights_path);
return create_input_model(weights_path_str);
#else
return create_input_model(weights_path);
#endif
Expand Down

0 comments on commit 87f7219

Please sign in to comment.