[neurun] Define internal datatype (#2399)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 22 Aug 2018 03:50:12 +0000 (12:50 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 22 Aug 2018 03:50:12 +0000 (12:50 +0900)
Define internal datatype (enum class DataType)
Now enum value of DataType is exactly matched with OperandCode in NeuralNetworks.h

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/src/internal/operand/DataType.h [new file with mode: 0644]

diff --git a/runtimes/neurun/src/internal/operand/DataType.h b/runtimes/neurun/src/internal/operand/DataType.h
new file mode 100644 (file)
index 0000000..ec257b7
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef __NEURUN_INTERNAL_OPERAND_DATATYPE_H__
+#define __NEURUN_INTERNAL_OPERAND_DATATYPE_H__
+
+namespace neurun
+{
+namespace internal
+{
+namespace operand
+{
+
+enum class DataType
+{
+  NEURUN_SCALAR_FLOAT32 = 0,
+  NEURUN_SCALAR_INT32 = 1,
+  NEURUN_SCALAR_UINT32 = 2,
+
+  NEURUN_TENSOR_FLOAT32 = 3,
+  NEURUN_TENSOR_INT32 = 4,
+
+  NEURUN_TENSOR_QUANT8_ASYMM = 5,
+};
+
+} // namespace operand
+} // namespace internal
+} // namespace neurun
+
+#endif // __NEURUN_INTERNAL_OPERAND_DATA_H__