[Triv2] Fix model's internal id handling in triv2
authorDongju Chae <dongju.chae@samsung.com>
Mon, 18 May 2020 05:49:01 +0000 (14:49 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Mon, 18 May 2020 09:14:44 +0000 (18:14 +0900)
This patch fixes model's internal id handling in triv2.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
packaging/npu-engine.spec
src/core/ne-handler.cc

index a134efe..dffacdb 100644 (file)
@@ -120,8 +120,7 @@ DESTDIR=%{buildroot} ninja install -C build %{?_smp_mflags}
 
   ./apptests/apptest_example_visa sample_models_v1 > /dev/null
   ./apptests/apptest_example_visa sample_models_v2 > /dev/null
-  # TODO: Let's make it work
-  # ./apptests/apptest_example_visa_triv2 sample_models_v3 > /dev/null
+  ./apptests/apptest_example_visa_triv2 sample_models_v3 > /dev/null
 
   rm -rf sample_models_*
 
index b378efa..53227c2 100644 (file)
@@ -1335,6 +1335,7 @@ TrinityVision2::setModel (const generic_buffer *model_buf, Model ** model_ptr)
   if (status != 0)
     goto delete_exit;
 
+  model->setInternalID(config.id);
   *model_ptr = model;
   return status;