Skip to content

Commit 271b163

Browse files
committed
fix the bug if not load dlc/bin model file
1 parent a1b9b06 commit 271b163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LibAppBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ std::unique_ptr<sample_app::QnnSampleApp> initQnnSampleApp(std::string cachedBin
9494
QNN_DEBUG("initQnnSampleApp saveBinaryName=%s\n", saveBinaryName.c_str());
9595
}
9696

97-
if (loadFromCachedBinary) { // *.bin
97+
if (loadFromCachedBinary) { // *.bin and *.dlc
9898
cachedBinaryPath2 = cachedBinaryPath;
9999
}
100100
else { // *.dll
@@ -144,7 +144,7 @@ std::unique_ptr<sample_app::QnnSampleApp> initQnnSampleApp(std::string cachedBin
144144
sg_qnnInterface = qnnFunctionPointers.qnnInterface;
145145
std::unique_ptr<sample_app::QnnSampleApp> app(new sample_app::QnnSampleApp(qnnFunctionPointers, "null", opPackagePaths, sg_backendHandle, "null",
146146
debug, parsedOutputDataType, parsedInputDataType, sg_parsedProfilingLevel,
147-
dumpOutputs, cachedBinaryPath2, saveBinaryName, lora_adapters, cachedBinaryPath));
147+
dumpOutputs, cachedBinaryPath2, saveBinaryName, lora_adapters, cachedBinaryPath2));
148148
return app;
149149
}
150150

0 commit comments

Comments
 (0)