[Protobuf] missing tensor type
authorJaeyun Jung <jy1210.jung@samsung.com>
Thu, 21 Dec 2023 10:22:04 +0000 (19:22 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 26 Dec 2023 07:58:36 +0000 (16:58 +0900)
Add missing tensor type 'float16' when generating protobuf and flatbuf code.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
ext/nnstreamer/include/nnstreamer.fbs
ext/nnstreamer/include/nnstreamer.proto
gst/nnstreamer/include/tensor_typedef.h

index c914d71..1a10986 100644 (file)
@@ -20,7 +20,7 @@ enum Tensor_type : int {
   NNS_FLOAT32,
   NNS_INT64,
   NNS_UINT64,
-
+  NNS_FLOAT16,
   NNS_END
   }
 
index 9646fc3..1967c94 100644 (file)
@@ -17,6 +17,7 @@ message Tensor {
     NNS_FLOAT32 = 7;
     NNS_INT64 = 8;
     NNS_UINT64 = 9;
+    NNS_FLOAT16 = 10;
   }
   Tensor_type type = 2;
   repeated uint32 dimension = 3;
index 2ada123..0a4e92e 100644 (file)
 
 /**
  * @brief Possible data element types of other/tensor.
+ * @note When changing tensor type, you shoud update related type in ML-API and protobuf/flatbuf schema also.
  */
 typedef enum _nns_tensor_type
 {