[res] TF_SMALL_NET_0010 (#4301)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Tue, 16 Jul 2019 10:34:23 +0000 (19:34 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 16 Jul 2019 10:34:23 +0000 (19:34 +0900)
This will add TF_SMALL_NET_0010 test that has "BiasAdd" + "Add" network

This is to test fusion of Add into BiasAdd

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
res/TensorFlowTests/TF_SMALL_NET_0010/test.info [new file with mode: 0644]
res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt [new file with mode: 0644]

diff --git a/res/TensorFlowTests/TF_SMALL_NET_0010/test.info b/res/TensorFlowTests/TF_SMALL_NET_0010/test.info
new file mode 100644 (file)
index 0000000..bcbc418
--- /dev/null
@@ -0,0 +1,2 @@
+input, Placeholder:0, TF_FLOAT, [1, 3, 3, 2]
+output, Add:0, TF_FLOAT, [1, 3, 3, 2]
diff --git a/res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt b/res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt
new file mode 100644 (file)
index 0000000..b9c6c99
--- /dev/null
@@ -0,0 +1,109 @@
+# A simple network that has "BiasAdd" + "Add"
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 3
+        }
+        dim {
+          size: 3
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "bias_add_01/bias"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 2
+          }
+        }
+        float_val: 1.0
+        float_val: -1.0
+      }
+    }
+  }
+}
+node {
+  name: "bias_add_01"
+  op: "BiasAdd"
+  input: "Placeholder"
+  input: "bias_add_01/bias"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "data_format"
+    value {
+      s: "NHWC"
+    }
+  }
+}
+node {
+  name: "addparam"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 2
+          }
+        }
+        float_val: 2.0
+      }
+    }
+  }
+}
+node {
+  name: "Add"
+  op: "Add"
+  input: "bias_add_01"
+  input: "addparam"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}