[moco/test/tf] test cases with Const (#3409)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Wed, 8 May 2019 03:54:50 +0000 (12:54 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 8 May 2019 03:54:50 +0000 (12:54 +0900)
This commit adds test cases with Const operation.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
contrib/moco/test/tf/Const_000/test.info [new file with mode: 0644]
contrib/moco/test/tf/Const_000/test.pbtxt [new file with mode: 0644]
contrib/moco/test/tf/Const_001/test.info [new file with mode: 0644]
contrib/moco/test/tf/Const_001/test.pbtxt [new file with mode: 0644]

diff --git a/contrib/moco/test/tf/Const_000/test.info b/contrib/moco/test/tf/Const_000/test.info
new file mode 100644 (file)
index 0000000..43b4f06
--- /dev/null
@@ -0,0 +1 @@
+output, const/float:0,  TF_FLOAT,   [2, 3]
diff --git a/contrib/moco/test/tf/Const_000/test.pbtxt b/contrib/moco/test/tf/Const_000/test.pbtxt
new file mode 100644 (file)
index 0000000..b91ade2
--- /dev/null
@@ -0,0 +1,32 @@
+node {
+  name: "const/float"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 2
+          }
+          dim {
+            size: 3
+          }
+        }
+        float_val: 1.1
+        float_val: 2.2
+        float_val: 3.3
+        float_val: 4.4
+        float_val: 5.5
+        float_val: 6.6
+      }
+    }
+  }
+}
diff --git a/contrib/moco/test/tf/Const_001/test.info b/contrib/moco/test/tf/Const_001/test.info
new file mode 100644 (file)
index 0000000..445b34b
--- /dev/null
@@ -0,0 +1 @@
+output, const/int32:0,  TF_INT32,   [2, 3]
diff --git a/contrib/moco/test/tf/Const_001/test.pbtxt b/contrib/moco/test/tf/Const_001/test.pbtxt
new file mode 100644 (file)
index 0000000..bec7dfb
--- /dev/null
@@ -0,0 +1,32 @@
+node {
+  name: "const/int32"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_INT32
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_INT32
+        tensor_shape {
+          dim {
+            size: 2
+          }
+          dim {
+            size: 3
+          }
+        }
+        int_val: 1
+        int_val: 2
+        int_val: 3
+        int_val: 4
+        int_val: 5
+        int_val: 6
+      }
+    }
+  }
+}