-
Notifications
You must be signed in to change notification settings - Fork 38
fix model save config #639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c93a645
to
9d0367a
Compare
9561f4a
to
c972758
Compare
static void DumpOpenVINOEPModel([[maybe_unused]] const std::filesystem::path& onnx_model_path_name, | ||
[[maybe_unused]] ONNX_NAMESPACE::ModelProto* model_proto, | ||
[[maybe_unused]] const onnxruntime::Node& fused_node) { | ||
#ifdef NOT_RELEASE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this definition NOT_RELEASE
Lets have a macro for RELEASE
target_compile_options(onnxruntime_providers_openvino PRIVATE
$<$<CONFIG:Release>:-DRELEASE>
)
#ifndef RELEASE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Limit the ability to save stripped model in disk using ORT_OPENVINO_ENABLE_DEBUG flag only in Debug and RelWithDebInfo builds.