[res] Tensorflow test file for Relu( Add( Conv2D, Scalar )) (#8282)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Thu, 17 Oct 2019 23:33:31 +0000 (08:33 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 17 Oct 2019 23:33:31 +0000 (08:33 +0900)
This adds Conv2D + Add + ReLU where Add's Const operand is a scalar (size 1 tensor).
To check exo handles this OK.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
res/TensorFlowTests/NET_0036/test.info [new file with mode: 0644]
res/TensorFlowTests/NET_0036/test.manifest [new file with mode: 0644]
res/TensorFlowTests/NET_0036/test.pbtxt [new file with mode: 0644]

diff --git a/res/TensorFlowTests/NET_0036/test.info b/res/TensorFlowTests/NET_0036/test.info
new file mode 100644 (file)
index 0000000..42e88c1
--- /dev/null
@@ -0,0 +1,2 @@
+input,  input:0,  TF_FLOAT,  [1, 5, 5, 3]
+output, relu:0,  TF_FLOAT,  [1, 2, 2, 4]
diff --git a/res/TensorFlowTests/NET_0036/test.manifest b/res/TensorFlowTests/NET_0036/test.manifest
new file mode 100644 (file)
index 0000000..820ab40
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Conv2D + Add + ReLU where Add's Const operand is a scalar (size 1 tensor)
diff --git a/res/TensorFlowTests/NET_0036/test.pbtxt b/res/TensorFlowTests/NET_0036/test.pbtxt
new file mode 100644 (file)
index 0000000..3c9cdec
--- /dev/null
@@ -0,0 +1,146 @@
+# Conv2D and its inputs are borrowed from NET_0025.
+node {
+  name: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 3
+          }
+          dim {
+            size: 3
+          }
+          dim {
+            size: 3
+          }
+          dim {
+            size: 4
+          }
+        }
+        float_val: 1.0
+      }
+    }
+  }
+}
+node {
+  name: "input"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 5
+        }
+        dim {
+          size: 5
+        }
+        dim {
+          size: 3
+        }
+      }
+    }
+  }
+}
+node {
+  name: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D"
+  op: "Conv2D"
+  input: "input:0"
+  input: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "data_format"
+    value {
+      s: "NHWC"
+    }
+  }
+  attr {
+    key: "dilations"
+    value {
+      list {
+        i: 1
+        i: 1
+        i: 1
+        i: 1
+      }
+    }
+  }
+  attr {
+    key: "padding"
+    value {
+      s: "VALID"
+    }
+  }
+  attr {
+    key: "strides"
+    value {
+      list {
+        i: 1
+        i: 2
+        i: 2
+        i: 1
+      }
+    }
+  }
+}
+node {
+  name: "add_const"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape { dim { size: 1 } }
+        float_val: 1.0
+      }
+    }
+  }
+}
+node {
+  name: "add"
+  op: "Add"
+  input: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D"
+  input: "add_const"
+  attr {
+    key: "T"
+    value { type: DT_FLOAT }
+  }
+}
+node {
+  name: "relu"
+  op: "Relu"
+  input: "add"
+  attr {
+    key: "T"
+    value { type: DT_FLOAT }
+  }
+}