[core] Migrate frontends/ir/src/ to std::filesystem::path#34925
Merged
mlukasze merged 8 commits intoopenvinotoolkit:masterfrom Apr 2, 2026
Merged
[core] Migrate frontends/ir/src/ to std::filesystem::path#34925mlukasze merged 8 commits intoopenvinotoolkit:masterfrom
mlukasze merged 8 commits intoopenvinotoolkit:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates IR frontend handling of weights paths from std::string to std::filesystem::path, and updates downstream consumers to convert back to std::string where required by existing runtime properties (e.g., ov::weights_path).
Changes:
- Switch IR FE
InputModel/InputModelIRImplweights_pathfromstd::stringtostd::filesystem::pathand propagate it via model rt_info ("__weights_path"). - Update IR FE
FrontEnd::load_implto passstd::filesystem::paththrough toInputModel. - Update several call sites (Core, GPU plugin, Template plugin, and a functional test) to treat
"__weights_path"as astd::filesystem::pathand convert tostd::stringforov::weights_path.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/tests/functional/base_func_tests/include/behavior/compiled_model/compiled_model_base.hpp | Fix SPDX tag typo and store __weights_path as std::filesystem::path in rt_info for the test. |
| src/plugins/template/src/plugin.cpp | Convert model rt_info __weights_path (now path) into ov::weights_path string property. |
| src/plugins/intel_gpu/src/runtime/execution_config.cpp | Convert model rt_info __weights_path (now path) into ov::weights_path string property for GPU execution config. |
| src/inference/src/dev/core_impl.cpp | Convert model rt_info __weights_path (now path) into ov::weights_path string when computing weightless cache behavior. |
| src/frontends/ir/src/input_model.hpp | Change weights_path constructor parameter type to std::filesystem::path and include <filesystem>. |
| src/frontends/ir/src/input_model.cpp | Store m_weights_path as std::filesystem::path and write it into model rt_info as __weights_path. |
| src/frontends/ir/src/frontend.cpp | Pass std::filesystem::path through create_input_model and return create_input_model(weights_path) directly. |
src/tests/functional/base_func_tests/include/behavior/compiled_model/compiled_model_base.hpp
Show resolved
Hide resolved
praasz
reviewed
Mar 27, 2026
src/tests/functional/base_func_tests/include/behavior/compiled_model/compiled_model_base.hpp
Outdated
Show resolved
Hide resolved
praasz
approved these changes
Mar 31, 2026
olpipi
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details:
weights_pathparameter and member variable fromstd::stringtostd::filesystem::pathin theInputModelandInputModelIRImplclassesFrontEnd::load_implTickets:
AI Assistance: