Disable stderr output in Release builds (#13666)

* Disable stderr output in Release builds

* Reverted TF FE changes

* Try to avoid ONNX issue

* Revert "Try to avoid ONNX issue"

This reverts commit 9c5bd7e7fa.

* Try to fix ONNX tests

* Revert "Try to fix ONNX tests"

This reverts commit b74f21baf6.

* Try to fix build

* Try to fix ONNX debug build
This commit is contained in:
Ilya Churaev authored and GitHub committed 2022-11-09 12:16:58 +04:00
1 parent fedcfa8eac
commit 22b69304e8
6 files changed
+29 -60

No files matched your search

@@ -2,6 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <google/protobuf/stubs/logging.h>
#include <fstream>
#include <input_model.hpp>
#include <onnx_import/onnx.hpp>
@@ -33,6 +35,10 @@ ONNX_FRONTEND_C_API void* GetFrontEndData() {
res->m_creator = []() {
return std::make_shared<FrontEnd>();
};
#ifndef OPENVINO_DEBUG_ENABLE
// disable protobuf logging
google::protobuf::SetLogHandler(nullptr);
#endif
return res;
}
+7
View File
@@ -4,6 +4,8 @@
#include "openvino/frontend/paddle/frontend.hpp"
#include <google/protobuf/stubs/logging.h>
#include <fstream>
#include <map>
#include <string>
@@ -523,5 +525,10 @@ PADDLE_C_API void* GetFrontEndData() {
res->m_creator = []() {
return std::make_shared<ov::frontend::paddle::FrontEnd>();
};
#ifndef OPENVINO_DEBUG_ENABLE
// disable protobuf logging
google::protobuf::SetLogHandler(nullptr);
#endif
return res;
}