[Utils] Add extra information to model-inspect tool
authorDongju Chae <dongju.chae@samsung.com>
Fri, 19 Mar 2021 07:17:35 +0000 (16:17 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Tue, 23 Mar 2021 01:21:23 +0000 (10:21 +0900)
This patch adds extra information to model-inspect tool.

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

index 50ba431..96527f3 100644 (file)
@@ -149,6 +149,10 @@ void Inspector::show_common ()
   std::cout << std::hex;
   std::cout << "  magiccode: 0x" << meta_->magiccode << "\n";
   std::cout << "  npu_version: 0x" << meta_->npu_version << "\n";
+  std::cout << "  - major: " << NPU_VERSION_MAJOR (meta_->npu_version) << "\n";
+  std::cout << "  - minor: " << NPU_VERSION_MINOR (meta_->npu_version) << "\n";
+  std::cout << "  - extra: " << NPU_VERSION_EXTRA (meta_->npu_version) << "\n";
+  std::cout << "  - tops: " << NPU_VERSION_TOPS (meta_->npu_version) << "\n";
   std::cout << "  compiler_version: 0x" << meta_->compiler_version << "\n";
   std::cout << "\n";
   std::cout << std::dec;
@@ -257,6 +261,10 @@ void Inspector::show_v3 ()
     std::cout << "  output_seg_quant_s[" << i << "]: " << meta_->output_seg_quant_s[i] << "\n";
   }
 
+  std::cout << std::dec << "\n";
+  std::cout << "  dspm_size: " << meta_->dspm_size << "\n";
+  std::cout << "  visa_num_plus_one: " << meta_->visa_num_plus_one << "\n";
+
   std::cout.flags (f);
 }