File tree 1 file changed +6
-2
lines changed
src/plugins/intel_npu/src/compiler_adapter/src
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,14 @@ std::vector<std::shared_ptr<IGraph>> PluginCompilerAdapter::compileWS(const std:
160
160
// mainNetworkDescription = _compiler->compileWS_v3(model, config, 1);
161
161
162
162
std::vector<std::shared_ptr<NetworkDescription>> initDscrs;
163
+ const std::shared_ptr<ov::Model> originalModel = model->clone ();
164
+ std::shared_ptr<ov::Model> targetModel = model;
163
165
size_t i = 0 ;
164
- while (auto networkDescription = _compiler->compileWS_v3 (model, config, i++)) {
165
- if (isInit (networkDescription->metadata .name )) {
166
+
167
+ while (auto networkDescription = _compiler->compileWS_v3 (targetModel, config, i++)) {
168
+ if (isInit (networkDescription->metadata .name )) {
166
169
initDscrs.push_back (networkDescription);
170
+ targetModel = originalModel->clone ();
167
171
continue ;
168
172
}
169
173
if (!isMain (networkDescription->metadata .name )) {
You can’t perform that action at this time.
0 commit comments