[moco/tf] Introduce BiasAdd tests for moco/tf (#3922)
author남궁석/On-Device Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Mon, 24 Jun 2019 03:28:10 +0000 (12:28 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 24 Jun 2019 03:28:10 +0000 (12:28 +0900)
This commit will introduce BiasAdd_000 and BiasAdd_001 tests for `moco/tf`

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
contrib/mocotest-tf/BiasAdd_000/INFERENCE [new file with mode: 0644]
contrib/mocotest-tf/BiasAdd_000/test.info [new file with mode: 0644]
contrib/mocotest-tf/BiasAdd_000/test.pbtxt [new file with mode: 0644]
contrib/mocotest-tf/BiasAdd_001/INFERENCE [new file with mode: 0644]
contrib/mocotest-tf/BiasAdd_001/test.info [new file with mode: 0644]
contrib/mocotest-tf/BiasAdd_001/test.pbtxt [new file with mode: 0644]

diff --git a/contrib/mocotest-tf/BiasAdd_000/INFERENCE b/contrib/mocotest-tf/BiasAdd_000/INFERENCE
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/contrib/mocotest-tf/BiasAdd_000/test.info b/contrib/mocotest-tf/BiasAdd_000/test.info
new file mode 100644 (file)
index 0000000..cbb4f38
--- /dev/null
@@ -0,0 +1 @@
+output, out:0,  TF_FLOAT,   [1, 5, 5, 3]
diff --git a/contrib/mocotest-tf/BiasAdd_000/test.pbtxt b/contrib/mocotest-tf/BiasAdd_000/test.pbtxt
new file mode 100644 (file)
index 0000000..642eac6
--- /dev/null
@@ -0,0 +1,57 @@
+node {
+  name: "val"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim { size: 1 }
+          dim { size: 5 }
+          dim { size: 5 }
+          dim { size: 3 }
+        }
+        float_val: 2.1
+      }
+    }
+  }
+}
+node {
+  name: "bias"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim { size: 3 }
+        }
+        float_val: 1.1
+      }
+    }
+  }
+}
+node {
+  name: "out"
+  op: "BiasAdd"
+  input: "val"
+  input: "bias"
+  attr {
+    key: "T"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "data_format"
+    value { s: "NHWC" }
+  }
+}
diff --git a/contrib/mocotest-tf/BiasAdd_001/INFERENCE b/contrib/mocotest-tf/BiasAdd_001/INFERENCE
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/contrib/mocotest-tf/BiasAdd_001/test.info b/contrib/mocotest-tf/BiasAdd_001/test.info
new file mode 100644 (file)
index 0000000..04c89d6
--- /dev/null
@@ -0,0 +1 @@
+output, out:0,  TF_FLOAT,   [1, 3, 4, 4]
diff --git a/contrib/mocotest-tf/BiasAdd_001/test.pbtxt b/contrib/mocotest-tf/BiasAdd_001/test.pbtxt
new file mode 100644 (file)
index 0000000..6b54308
--- /dev/null
@@ -0,0 +1,57 @@
+node {
+  name: "val"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim { size: 1 }
+          dim { size: 3 }
+          dim { size: 4 }
+          dim { size: 4 }
+        }
+        float_val: 2.1
+      }
+    }
+  }
+}
+node {
+  name: "bias"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim { size: 3 }
+        }
+        float_val: 1.1
+      }
+    }
+  }
+}
+node {
+  name: "out"
+  op: "BiasAdd"
+  input: "val"
+  input: "bias"
+  attr {
+    key: "T"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "data_format"
+    value { s: "NCHW" }
+  }
+}