openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
6.12k stars 2.04k forks source link

[NPU] Fix issue model name not return from meta-data #24529

Closed KianYongGanIntel closed 1 week ago

KianYongGanIntel commented 2 weeks ago

Details:

A new test case added in openvino https://github.com/openvinotoolkit/openvino/blob/fd9a63cffd76323791c84abfe46ea3449f35a3e0/src/tests/functional/plugin/shared/src/behavior/compiled_model/properties.cpp#L240 but it encounter some issue in CID path where the model_name return is null, this PR trying to solve the issue

Tickets:

XinWangIntel commented 1 week ago

It might be worth mentioning that this PR unlocks only the scenario in which an IR model is being compiled. I believe the "import_model" case would still require retrieving the name of the model from the driver (relates to this function).

Is there another PR which enables the tests unlocked by the current one? If so, would you mind leaving only its number inside the description?

@razvanapetroaie , the import_model path can get name, but name is different with the original one, ticket is 121043, we will check the issue in other PR. Thanks!