Skip to content

Commit

Permalink
Code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed May 31, 2024
1 parent 31aff04 commit d91ae34
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/frontends/common/src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ InputModel::Ptr FrontEnd::load_impl(const std::vector<ov::Any>& variants) const

if (variants[0].is<std::string>()) {
auto model_path = variants[0].as<std::string>();
// Fix unicode name
#if defined(OPENVINO_ENABLE_UNICODE_PATH_SUPPORT) && defined(_WIN32)
std::wstring model_path_wstr = ov::util::string_to_wstring(model_path.c_str());
#else
std::string model_path_wstr = model_path;
#endif
// Fix unicode name
#if defined(OPENVINO_ENABLE_UNICODE_PATH_SUPPORT) && defined(_WIN32)
std::wstring model_path_wstr = ov::util::string_to_wstring(model_path.c_str());
#else
std::string model_path_wstr = model_path;
#endif
ov::AnyVector params{model_path_wstr};
FRONTEND_CALL_STATEMENT("Loading input model", model->m_actual = m_actual->load_impl(params))
}
else {
} else {
FRONTEND_CALL_STATEMENT("Loading input model", model->m_actual = m_actual->load_impl(variants))
}
return model;
Expand Down

0 comments on commit d91ae34

Please sign in to comment.