Skip to content

Commit 969e4a5

Browse files
committed
Add logic to take into account -raw_blob only if NPU_EXPORT_RAW_BLOB was not passed via -load_config file
1 parent dbe1b41 commit 969e4a5

File tree

1 file changed

+6
-1
lines changed
  • src/plugins/intel_npu/tools/compile_tool

1 file changed

+6
-1
lines changed

src/plugins/intel_npu/tools/compile_tool/main.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,12 @@ int main(int argc, char* argv[]) {
491491
}
492492
if (FLAGS_raw_blob) {
493493
if (FLAGS_d == "NPU") {
494-
configs["NPU_EXPORT_RAW_BLOB"] = "YES";
494+
// set only if was not previously parsed from config
495+
if (configs.find("NPU_EXPORT_RAW_BLOB") == configs.end()) {
496+
configs["NPU_EXPORT_RAW_BLOB"] = "YES";
497+
} else {
498+
std::cout << "Ignoring -raw_blob flag already set via -load_config." << std::endl;
499+
}
495500
} else {
496501
std::cout << "Ignoring -raw_blob flag used with other device than NPU." << std::endl;
497502
}

0 commit comments

Comments
 (0)