[res] Simple TF Shape test case (#6341)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Thu, 8 Aug 2019 01:19:57 +0000 (10:19 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 8 Aug 2019 01:19:57 +0000 (10:19 +0900)
This commit adds simple Shape network for TF test.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
res/TensorFlowTests/Shape_000/test.info [new file with mode: 0644]
res/TensorFlowTests/Shape_000/test.pbtxt [new file with mode: 0644]

diff --git a/res/TensorFlowTests/Shape_000/test.info b/res/TensorFlowTests/Shape_000/test.info
new file mode 100644 (file)
index 0000000..330c6c2
--- /dev/null
@@ -0,0 +1 @@
+output, Shape:0, TF_INT32, [2]
diff --git a/res/TensorFlowTests/Shape_000/test.pbtxt b/res/TensorFlowTests/Shape_000/test.pbtxt
new file mode 100644 (file)
index 0000000..7a6cab7
--- /dev/null
@@ -0,0 +1,41 @@
+# Simple Shape network
+node {
+  name: "Const"
+  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.0
+      }
+    }
+  }
+}
+node {
+  name: "Shape"
+  op: "Shape"
+  input: "Const"
+  attr {
+    key: "T"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "out_type"
+    value { type: DT_INT32 }
+  }
+}