Skip to content

Commit

Permalink
Revert temporary modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
praasz committed Oct 31, 2024
1 parent 465e30b commit c6a89b8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/bindings/c/src/ov_prepostprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,12 @@ ov_status_e ov_preprocess_prepostprocessor_build(const ov_preprocess_prepostproc
if (!preprocess || !model) {
return ov_status_e::INVALID_C_PARAM;
}
// try {
std::unique_ptr<ov_model_t> _model(new ov_model_t);
_model->object = preprocess->object->build();
*model = _model.release();
// }
// CATCH_OV_EXCEPTIONS
try {
std::unique_ptr<ov_model_t> _model(new ov_model_t);
_model->object = preprocess->object->build();
*model = _model.release();
}
CATCH_OV_EXCEPTIONS

return ov_status_e::OK;
}
Expand All @@ -541,12 +541,12 @@ ov_status_e ov_preprocess_preprocess_steps_pad(const ov_preprocess_preprocess_st
if (!preprocess_input_process_steps) {
return ov_status_e::INVALID_C_PARAM;
}
// try {
std::vector<int> vec_begin(pads_begin, pads_begin + pads_begin_size);
std::vector<int> vec_end(pads_end, pads_end + pads_end_size);
preprocess_input_process_steps->object->pad(vec_begin, vec_end, value, padding_mode_map.at(mode));
// }
// CATCH_OV_EXCEPTIONS
try {
std::vector<int> vec_begin(pads_begin, pads_begin + pads_begin_size);
std::vector<int> vec_end(pads_end, pads_end + pads_end_size);
preprocess_input_process_steps->object->pad(vec_begin, vec_end, value, padding_mode_map.at(mode));
}
CATCH_OV_EXCEPTIONS

return ov_status_e::OK;
}

0 comments on commit c6a89b8

Please sign in to comment.