[moco] test material for TensorFlow Relu (#3490)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 16 May 2019 03:43:29 +0000 (12:43 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 16 May 2019 03:43:29 +0000 (12:43 +0900)
This will add fist unit test material for importing TensorFlow Relu node.

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
contrib/moco/test/tf/Relu_000/test.info [new file with mode: 0644]
contrib/moco/test/tf/Relu_000/test.pbtxt [new file with mode: 0644]

diff --git a/contrib/moco/test/tf/Relu_000/test.info b/contrib/moco/test/tf/Relu_000/test.info
new file mode 100644 (file)
index 0000000..e3e2b17
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0,      TF_FLOAT,   [1, 2, 1, 2]
+output, output/relu:0,      TF_FLOAT,   [1, 2, 1, 2]
diff --git a/contrib/moco/test/tf/Relu_000/test.pbtxt b/contrib/moco/test/tf/Relu_000/test.pbtxt
new file mode 100644 (file)
index 0000000..96f21d5
--- /dev/null
@@ -0,0 +1,40 @@
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 2
+        }
+        dim {
+          size: 1
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "output/relu"
+  op: "Relu"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}