Hot fix: rename OV_CHECK to OPENVINO_ASSERT (#7429)

This commit is contained in:
Ilya Churaev 2021-09-08 18:32:10 +03:00 committed by GitHub
parent d1b0f06f4f
commit 75808b0026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,16 +145,16 @@ std::shared_ptr<Function> PrePostProcessor::build(const std::shared_ptr<Function
bool tensor_data_updated = false;
for (const auto& input : m_impl->in_contexts) {
std::shared_ptr<op::v0::Parameter> param;
OV_CHECK(input, "Internal error: Invalid preprocessing input, please report a problem");
OPENVINO_ASSERT(input, "Internal error: Invalid preprocessing input, please report a problem");
if (input->has_index()) {
param = function->get_parameters().at(input->m_index);
} else {
// Default case
OV_CHECK(function->get_parameters().size() == 1,
std::string("Preprocessing info expects having 1 input, however function has ") +
std::to_string(function->get_parameters().size()) +
" inputs. Please use ov::preprocess::InputInfo constructor specifying "
"particular input instead of default one");
OPENVINO_ASSERT(function->get_parameters().size() == 1,
std::string("Preprocessing info expects having 1 input, however function has ") +
std::to_string(function->get_parameters().size()) +
" inputs. Please use ov::preprocess::InputInfo constructor specifying "
"particular input instead of default one");
param = function->get_parameters().front();
}
auto consumers = param->output(0).get_target_inputs();