@@ -187,17 +187,17 @@ int svcprocess_run(HANDLE hSvcPipeInRead, HANDLE hSvcPipeOutWrite) {
187187
188188 char * cmdBuf = g_buffer + 1 ;
189189 switch (g_buffer[0 ]) {
190- case ' l' : // load model.
191- ModelLoad (cmdBuf, hSvcPipeOutWrite);
192- break ;
190+ case ' l' : // load model.
191+ ModelLoad (cmdBuf, hSvcPipeOutWrite);
192+ break ;
193193
194- case ' g' : // run Graphs.
195- ModelRun (cmdBuf, hSvcPipeOutWrite);
196- break ;
194+ case ' g' : // run Graphs.
195+ ModelRun (cmdBuf, hSvcPipeOutWrite);
196+ break ;
197197
198- case ' r' : // release model.
199- ModelRelease (cmdBuf, hSvcPipeOutWrite);
200- break ;
198+ case ' r' : // release model.
199+ ModelRelease (cmdBuf, hSvcPipeOutWrite);
200+ break ;
201201 }
202202 }
203203
@@ -212,7 +212,7 @@ int svcprocess_run(HANDLE hSvcPipeInRead, HANDLE hSvcPipeOutWrite) {
212212int hostprocess_run (std::string qnn_lib_path, std::string model_path,
213213 std::string input_raw_path, int input_count, int memory_size,
214214 std::string perf_profile, const std::vector <LoraAdapter>& Adapters ) {
215- BOOL result = false ;
215+ BOOL result = false ;
216216
217217 std::string MODEL_NAME = " <model_name>" ;
218218 std::string PROC_NAME = " <proc_name>" ;
@@ -284,6 +284,7 @@ int hostprocess_run(std::string qnn_lib_path, std::string model_path,
284284 }
285285 os.close ();
286286 }
287+
287288 for (int i = 0 ; i < outputBuffers.size (); i++) {
288289 free (outputBuffers[i]);
289290 }
@@ -420,7 +421,8 @@ int main(int argc, char** argv) {
420421 --model_path <str:model_path> --perf_profile <str:perf_profile> --input_path <str:input_raw_path>
421422 --input_count <int:input_count> --memory_size<int:memory_size>
422423 --binary_updates<str:graph_name,binary_update_path_1;binary_update_path_2>
423- input files are under 'input_raw_path' and the file names format are 'input_%d.raw'. */
424+ input files are under 'input_raw_path' and the file names format are 'input_%d.raw'.
425+ */
424426
425427 try {
426428 // Parse command-line arguments
@@ -482,3 +484,4 @@ int main(int argc, char** argv) {
482484
483485 return 0 ;
484486}
487+
0 commit comments