Skip to content

Conversation

@intbf
Copy link

@intbf intbf commented Dec 9, 2025

Motivation and Context

CVS-177904, CVS-174602

if (it == proto_initializer_map.end())
continue;

auto* proto_init = it->second;

Choose a reason for hiding this comment

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

Can you please make this a reference for consistency? You check below with a direct iterator use can be moved up.

@MayureshV1
Copy link

The changes look good. Also getting Dmitri to review this to ensure it meets his review comment.
Please note, this change will only be part of ORT 1.24.

@MayureshV1 MayureshV1 changed the title Address code review comments for backend_manager.cc CVS-177904: Address code review comments for backend_manager.cc Dec 10, 2025
@intbf intbf force-pushed the address_code_review_backend_manager branch from 19b999b to 608746a Compare December 10, 2025 08:03
Refactor LoadFileToMemory to return std::optional, enabling explicit error handling for file loading failures. Update tests to assert successful file loads and access data via optionals.
@yuslepukhin
Copy link

Looks good to me

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.

4 participants