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

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

diff --git a/res/TensorFlowTests/UNIT_Mul_001/test.info b/res/TensorFlowTests/UNIT_Mul_001/test.info
new file mode 100644 (file)
index 0000000..9de3a64
--- /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, mul:0,  TF_FLOAT,   [1, 3, 3, 5]
diff --git a/res/TensorFlowTests/UNIT_Mul_001/test.pbtxt b/res/TensorFlowTests/UNIT_Mul_001/test.pbtxt
new file mode 100644 (file)
index 0000000..a96c9ae
--- /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: "mul"
+  op: "Mul"
+  input: "input_01"
+  input: "input_02"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UNIT_Mul_002/test.info b/res/TensorFlowTests/UNIT_Mul_002/test.info
new file mode 100644 (file)
index 0000000..241ccd9
--- /dev/null
@@ -0,0 +1,3 @@
+input, input_01:0,  TF_FLOAT,   [1, 3, 3, 5]
+input, input_02:0,  TF_FLOAT,   [5]
+output, mul:0,  TF_FLOAT,   [1, 3, 3, 5]
diff --git a/res/TensorFlowTests/UNIT_Mul_002/test.pbtxt b/res/TensorFlowTests/UNIT_Mul_002/test.pbtxt
new file mode 100644 (file)
index 0000000..9ad65c9
--- /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: "mul"
+  op: "Mul"
+  input: "input_01"
+  input: "input_02"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}