[Test/Fix] Change data type to DATA_TYPE_MODEL
authorDongju Chae <dongju.chae@samsung.com>
Mon, 13 Sep 2021 03:16:13 +0000 (12:16 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Mon, 13 Sep 2021 07:22:14 +0000 (16:22 +0900)
This patch change a data type to DATA_TYPE_MODEL which
describe the data type that a model internally assumes.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
tests/utils/ne_test_utils.cc

index 3b9c549..6184d96 100644 (file)
@@ -747,7 +747,7 @@ UtilTRIV2::set_data_info (npubin_meta *meta, uint32_t model_id) {
       info_in.info[idx].layout = DATA_LAYOUT_TRIV2;
     else
       info_in.info[idx].layout = DATA_LAYOUT_NHWC;
-    info_in.info[idx].type = DATA_TYPE_QASYMM8;
+    info_in.info[idx].type = DATA_TYPE_MODEL;
   }
 
   info_out.num_info = meta->output_seg_num;
@@ -756,7 +756,7 @@ UtilTRIV2::set_data_info (npubin_meta *meta, uint32_t model_id) {
       info_out.info[idx].layout = DATA_LAYOUT_TRIV2;
     else
       info_out.info[idx].layout = DATA_LAYOUT_NHWC;
-    info_out.info[idx].type = DATA_TYPE_QASYMM8;
+    info_out.info[idx].type = DATA_TYPE_MODEL;
   }
 
   return setNPU_dataInfo (dev_, model_id, &info_in, &info_out);