Skip to content

[paddle FE] Fix validation of model path for legacy version#34509

Open
praasz wants to merge 6 commits intoopenvinotoolkit:masterfrom
praasz:bugfix/paddle-dont-validat-legacy-model-path
Open

[paddle FE] Fix validation of model path for legacy version#34509
praasz wants to merge 6 commits intoopenvinotoolkit:masterfrom
praasz:bugfix/paddle-dont-validat-legacy-model-path

Conversation

@praasz
Copy link
Contributor

@praasz praasz commented Mar 5, 2026

Details:

  • Fix check if file exist for legacy path stored under directory in __model__ file.

Tickets:

Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
@praasz praasz requested a review from a team as a code owner March 5, 2026 09:35
@github-actions github-actions bot added the category: PDPD FE OpenVINO PaddlePaddle FrontEnd label Mar 5, 2026
praasz added 2 commits March 5, 2026 10:49
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
@praasz praasz requested a review from a team as a code owner March 5, 2026 11:18
@github-actions github-actions bot added the category: IE Tests OpenVINO Test: plugins and common label Mar 5, 2026
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
@github-actions github-actions bot removed the category: IE Tests OpenVINO Test: plugins and common label Mar 5, 2026
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes Paddle FrontEnd supported_impl() path validation for “legacy” models where the provided path can be a directory containing a __model__ file (instead of a .pdmodel file), and adds regression tests around this behavior.

Changes:

  • Update Paddle FE supported_impl() to detect directory inputs and validate <dir>/__model__.
  • Tighten non-directory validation by requiring .pdmodel extension when the path is a file.
  • Add unit tests covering legacy-directory models, non-existent legacy paths, and incorrect extensions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/frontends/paddle/src/frontend.cpp Adjusts supported_impl() to handle directory-based legacy models by checking for __model__ inside the directory.
src/frontends/paddle/tests/basic_api.cpp Adds tests to validate the updated legacy directory handling and negative cases.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: PDPD FE OpenVINO PaddlePaddle FrontEnd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants