[res] Add renamed NET test from Multiple_IO_XXXX (#6821)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Fri, 23 Aug 2019 01:12:36 +0000 (10:12 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 23 Aug 2019 01:12:36 +0000 (10:12 +0900)
This commit add (will-be) renamed test cases of Multiple_IO_XXXX.

NET_0022 <- Multiple_IO_000
NET_0023 <- Multiple_IO_001
NET_0024 <- Multiple_IO_002

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

diff --git a/res/TensorFlowTests/NET_0022/test.info b/res/TensorFlowTests/NET_0022/test.info
new file mode 100644 (file)
index 0000000..89c33ee
--- /dev/null
@@ -0,0 +1,5 @@
+# this has two inputs and two outputs. Let's make our code to handle multiple inputs and outputs.
+input,   input_1:0,    TF_FLOAT,   [2, 2]
+input,   input_2:0,    TF_FLOAT,   [2, 2]
+output,  output_1:0,   TF_FLOAT,   [2, 2]
+output,  output_2:0,   TF_FLOAT,   [2, 2]
diff --git a/res/TensorFlowTests/NET_0022/test.pbtxt b/res/TensorFlowTests/NET_0022/test.pbtxt
new file mode 100644 (file)
index 0000000..c8879e8
--- /dev/null
@@ -0,0 +1,70 @@
+node {
+  name: "input_1"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 2
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "input_2"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 2
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "output_1"
+  op: "Add"
+  input: "input_1"
+  input: "input_2"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
+node {
+  name: "output_2"
+  op: "Add"
+  input: "input_1"
+  input: "input_2"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/NET_0023/test.info b/res/TensorFlowTests/NET_0023/test.info
new file mode 100644 (file)
index 0000000..856de94
--- /dev/null
@@ -0,0 +1,2 @@
+# this has no input
+output,  out:0,   TF_FLOAT,   [2, 2]
diff --git a/res/TensorFlowTests/NET_0023/test.pbtxt b/res/TensorFlowTests/NET_0023/test.pbtxt
new file mode 100644 (file)
index 0000000..2ef5a0b
--- /dev/null
@@ -0,0 +1,72 @@
+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: 2
+          }
+        }
+        float_val: 1
+        float_val: 2
+        float_val: 3
+        float_val: 4
+      }
+    }
+  }
+}
+node {
+  name: "Const_1"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 2
+          }
+          dim {
+            size: 2
+          }
+        }
+        float_val: 1
+        float_val: 2
+        float_val: 3
+        float_val: 4
+      }
+    }
+  }
+}
+node {
+  name: "out"
+  op: "Add"
+  input: "Const"
+  input: "Const_1"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/NET_0024/test.info b/res/TensorFlowTests/NET_0024/test.info
new file mode 100644 (file)
index 0000000..f049f9d
--- /dev/null
@@ -0,0 +1,3 @@
+input, fst:0, TF_FLOAT, [1, 6, 1, 1]
+input, snd:0, TF_FLOAT, [1, 3, 1, 1]
+output, out:0, TF_FLOAT, [1, 9, 1, 1]
diff --git a/res/TensorFlowTests/NET_0024/test.pbtxt b/res/TensorFlowTests/NET_0024/test.pbtxt
new file mode 100644 (file)
index 0000000..ee3f99d
--- /dev/null
@@ -0,0 +1,76 @@
+# This example intentionally declares "snd" node before "fst" node
+node {
+  name: "snd"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim { size: 1 }
+        dim { size: 3 }
+        dim { size: 1 }
+        dim { size: 1 }
+      }
+    }
+  }
+}
+node {
+  name: "fst"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim { size: 1 }
+        dim { size: 6 }
+        dim { size: 1 }
+        dim { size: 1 }
+      }
+    }
+  }
+}
+node {
+  name: "axis"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value { type: DT_INT32 }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_INT32
+        tensor_shape { }
+        int_val: 1
+      }
+    }
+  }
+}
+node {
+  name: "out"
+  op: "ConcatV2"
+  input: "fst"
+  input: "snd"
+  input: "axis"
+  attr {
+    key: "N"
+    value { i: 2 }
+  }
+  attr {
+    key: "T"
+    value { type: DT_FLOAT }
+  }
+  attr {
+    key: "Tidx"
+    value { type: DT_INT32 }
+  }
+}