[res] TF test for Add broadcast (#7186)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 5 Sep 2019 04:25:31 +0000 (13:25 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 5 Sep 2019 04:25:31 +0000 (13:25 +0900)
This will add two Add TF test materials for broadcast operation

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

diff --git a/res/TensorFlowTests/UNIT_Add_001/test.info b/res/TensorFlowTests/UNIT_Add_001/test.info
new file mode 100644 (file)
index 0000000..f99f0f8
--- /dev/null
@@ -0,0 +1,3 @@
+input, input_01:0,  TF_FLOAT,   [1, 3, 3, 5]
+input, input_02:0,  TF_FLOAT,   [1, 1, 1, 5]
+output, add:0,  TF_FLOAT,   [1, 3, 3, 5]
diff --git a/res/TensorFlowTests/UNIT_Add_001/test.pbtxt b/res/TensorFlowTests/UNIT_Add_001/test.pbtxt
new file mode 100644 (file)
index 0000000..ff89686
--- /dev/null
@@ -0,0 +1,70 @@
+node {
+  name: "input_01"
+  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: 5
+        }
+      }
+    }
+  }
+}
+node {
+  name: "input_02"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 1
+        }
+        dim {
+          size: 1
+        }
+        dim {
+          size: 5
+        }
+      }
+    }
+  }
+}
+node {
+  name: "add"
+  op: "Add"
+  input: "input_01"
+  input: "input_02"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UNIT_Add_002/test.info b/res/TensorFlowTests/UNIT_Add_002/test.info
new file mode 100644 (file)
index 0000000..4471cff
--- /dev/null
@@ -0,0 +1,3 @@
+input, input_01:0,  TF_FLOAT,   [1, 3, 3, 5]
+input, input_02:0,  TF_FLOAT,   [5]
+output, add:0,  TF_FLOAT,   [1, 3, 3, 5]
diff --git a/res/TensorFlowTests/UNIT_Add_002/test.pbtxt b/res/TensorFlowTests/UNIT_Add_002/test.pbtxt
new file mode 100644 (file)
index 0000000..5e320a4
--- /dev/null
@@ -0,0 +1,61 @@
+node {
+  name: "input_01"
+  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: 5
+        }
+      }
+    }
+  }
+}
+node {
+  name: "input_02"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 5
+        }
+      }
+    }
+  }
+}
+node {
+  name: "add"
+  op: "Add"
+  input: "input_01"
+  input: "input_02"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}