Skip to content

Commit

Permalink
Code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed Jun 17, 2024
1 parent 720845c commit b828350
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/frontends/common/src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ FrontEnd::~FrontEnd() = default;

bool FrontEnd::supported_impl(const std::vector<ov::Any>& variants) const {
if (m_actual) {
FRONTEND_RETURN_STATEMENT("Check supported", m_actual->supported_impl(to_wstring_if_needed(variants)))
}
FRONTEND_RETURN_STATEMENT("Check supported", m_actual->supported_impl(to_wstring_if_needed(variants)))
}
return false;
}

InputModel::Ptr FrontEnd::load_impl(const std::vector<ov::Any>& variants) const {
FRONT_END_CHECK_IMPLEMENTED(m_actual, load_impl);
auto model = std::make_shared<InputModel>();
model->m_shared_object = m_shared_object;
FRONTEND_CALL_STATEMENT("Loading input model", model->m_actual = m_actual->load_impl(to_wstring_if_needed(variants)))
FRONTEND_CALL_STATEMENT("Loading input model",
model->m_actual = m_actual->load_impl(to_wstring_if_needed(variants)))
return model;
}

Expand Down
6 changes: 3 additions & 3 deletions src/frontends/common/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
//


#include "utils.hpp"

#include "openvino/util/file_util.hpp"

namespace ov {
Expand All @@ -25,5 +25,5 @@ std::vector<ov::Any> to_wstring_if_needed(const std::vector<ov::Any>& variants)
}
}

}
}
} // namespace frontend
} // namespace ov
7 changes: 3 additions & 4 deletions src/frontends/common/src/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include <string>

#include "openvino/frontend/visibility.hpp"
#include "openvino/frontend/extension/op.hpp"
#include "openvino/frontend/visibility.hpp"

#define RETHROW_FRONTEND_EXCEPTION(Type) \
catch (const Type& ex) { \
Expand Down Expand Up @@ -50,11 +50,10 @@
OPENVINO_ASSERT(false, (MESSAGE)); \
}


namespace ov {
namespace frontend {

std::vector<ov::Any> to_wstring_if_needed(const std::vector<ov::Any>& variants) ;
std::vector<ov::Any> to_wstring_if_needed(const std::vector<ov::Any>& variants);

}
}
} // namespace ov

0 comments on commit b828350

Please sign in to comment.