forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CVS-132132][NPU] Move the model transformations to the "CompiledMode…
…l" constructor (openvinotoolkit#24124) ### Details: - The first requirement from the attached ticket: "Move call of transformations to CompiledModel constructor. Since the CompiledModel constructor requires input and output ports, such ports should be passed before transformations are called, otherwise we can have issues when transformation mistakenly changed names of tensors and we have issues like https://jira.devtools.intel.com/browse/CVS-122932" - Moving the compilation step inside the `intel_npu::CompiledModel` constructor led to the divergence of the function signature required by the two methods calling the constructor: [`intel_npu::Plugin::compile_model`](https://github.com/razvanapetroaie/openvino/blob/60dec94dc466ca41002cf5a996b005c00264af91/src/plugins/intel_npu/src/plugin/src/plugin.cpp#L510-L516) and [`intel_npu::Plugin::import_model`](https://github.com/razvanapetroaie/openvino/blob/60dec94dc466ca41002cf5a996b005c00264af91/src/plugins/intel_npu/src/plugin/src/plugin.cpp#L582-L588). Thus, the current PR introduces an additional constructor. ### Tickets: - *CVS-132132* ### Extra Validation: - PR-10217, NPU plugin repository
- Loading branch information
1 parent
0b34324
commit db6c350
Showing
3 changed files
with
91 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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