Skip to content

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

Merged
merged 4 commits into from
Apr 8, 2025
Merged

fix model save config #639

merged 4 commits into from
Apr 8, 2025

Conversation

saurabhkale17
Copy link

@saurabhkale17 saurabhkale17 commented Apr 4, 2025

Description

Limit the ability to save stripped model in disk using ORT_OPENVINO_ENABLE_DEBUG flag only in Debug and RelWithDebInfo builds.

@saurabhkale17 saurabhkale17 requested a review from MayureshV1 April 4, 2025 07:01
@vthaniel vthaniel force-pushed the saurabh/model_save branch from c93a645 to 9d0367a Compare April 7, 2025 13:04
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
Copy link

@preetha-intel preetha-intel Apr 8, 2025

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

Copy link

@preetha-intel preetha-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@preetha-intel preetha-intel merged commit c0c347c into ovep-develop Apr 8, 2025
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants