[npubinfmt] Add data layout for inout tensors to npubinfmt.h
authorDongju Chae <dongju.chae@samsung.com>
Tue, 22 Jun 2021 07:39:47 +0000 (16:39 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Fri, 25 Jun 2021 06:40:11 +0000 (15:40 +0900)
This patch adds the model-expected data layout for input/output
tensors to npubinfmt.h

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
include/common/npubinfmt.h

index 02717ba..47e8d29 100644 (file)
@@ -275,6 +275,11 @@ typedef struct {
           /** vISA instructions */
           uint32_t visa_num_plus_one;
           /**< Number of vISA insts + 1 (i.e., unknown if zero) */
+
+          data_layout input_seg_layout[MAX_TENSORS];
+          /**< Model-expected data layout for input tensors */
+          data_layout output_seg_layout[MAX_TENSORS];
+          /**< Model-expected data layout for output tensors */
         };
         /** If npubinfmt should be changed, append here as another version */
       };