[res] Regression test for Add (#6513)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Mon, 19 Aug 2019 07:06:57 +0000 (16:06 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Mon, 19 Aug 2019 07:06:57 +0000 (16:06 +0900)
This commit adds Regression test for Add network with Placeholder and
Const operations as inputs.

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

diff --git a/res/TensorFlowTests/REGRESSION_0000/test.info b/res/TensorFlowTests/REGRESSION_0000/test.info
new file mode 100644 (file)
index 0000000..1012f87
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0, TF_FLOAT, [2, 3]
+output, Add:0,         TF_FLOAT, [2, 3]
diff --git a/res/TensorFlowTests/REGRESSION_0000/test.pbtxt b/res/TensorFlowTests/REGRESSION_0000/test.pbtxt
new file mode 100644 (file)
index 0000000..aa552ce
--- /dev/null
@@ -0,0 +1,68 @@
+# Add network with Placeholder and Const as arguments
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 2
+        }
+        dim {
+          size: 3
+        }
+      }
+    }
+  }
+}
+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.1
+        float_val: 2.2
+        float_val: 3.3
+        float_val: 4.4
+        float_val: 5.5
+        float_val: 6.6
+      }
+    }
+  }
+}
+node {
+  name: "Add"
+  op: "Add"
+  input: "Placeholder"
+  input: "Const"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}