[res] Introduce Softmax testcases (#6562)
author남궁석/On-Device Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Wed, 14 Aug 2019 01:44:33 +0000 (10:44 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 14 Aug 2019 01:44:33 +0000 (10:44 +0900)
* [res] Introduce Softmax testcases

This commit will introduce `Softmax` testcases

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* remove versions

res/TensorFlowTests/Softmax_000/test.info [new file with mode: 0644]
res/TensorFlowTests/Softmax_000/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/Softmax_001/test.info [new file with mode: 0644]
res/TensorFlowTests/Softmax_001/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/Softmax_002/test.info [new file with mode: 0644]
res/TensorFlowTests/Softmax_002/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/Softmax_003/test.info [new file with mode: 0644]
res/TensorFlowTests/Softmax_003/test.pbtxt [new file with mode: 0644]

diff --git a/res/TensorFlowTests/Softmax_000/test.info b/res/TensorFlowTests/Softmax_000/test.info
new file mode 100644 (file)
index 0000000..66536b5
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0, TF_FLOAT, [2]
+output, Softmax:0,     TF_FLOAT, [2]
diff --git a/res/TensorFlowTests/Softmax_000/test.pbtxt b/res/TensorFlowTests/Softmax_000/test.pbtxt
new file mode 100644 (file)
index 0000000..78451d0
--- /dev/null
@@ -0,0 +1,32 @@
+# Softmax with rank-1 tensor
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "Softmax"
+  op: "Softmax"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/Softmax_001/test.info b/res/TensorFlowTests/Softmax_001/test.info
new file mode 100644 (file)
index 0000000..fe58213
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0, TF_FLOAT, [2, 3]
+output, Softmax:0,     TF_FLOAT, [2, 3]
diff --git a/res/TensorFlowTests/Softmax_001/test.pbtxt b/res/TensorFlowTests/Softmax_001/test.pbtxt
new file mode 100644 (file)
index 0000000..ec6e030
--- /dev/null
@@ -0,0 +1,35 @@
+# Softmax with rank-2 tensor
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 2
+        }
+        dim {
+          size: 3
+        }
+      }
+    }
+  }
+}
+node {
+  name: "Softmax"
+  op: "Softmax"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/Softmax_002/test.info b/res/TensorFlowTests/Softmax_002/test.info
new file mode 100644 (file)
index 0000000..ae4dcd6
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0, TF_FLOAT, [2, 3, 4]
+output, Softmax:0,     TF_FLOAT, [2, 3, 4]
diff --git a/res/TensorFlowTests/Softmax_002/test.pbtxt b/res/TensorFlowTests/Softmax_002/test.pbtxt
new file mode 100644 (file)
index 0000000..e84d73c
--- /dev/null
@@ -0,0 +1,38 @@
+# Softmax with rank-3 tensor
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 2
+        }
+        dim {
+          size: 3
+        }
+        dim {
+          size: 4
+        }
+      }
+    }
+  }
+}
+node {
+  name: "Softmax"
+  op: "Softmax"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/Softmax_003/test.info b/res/TensorFlowTests/Softmax_003/test.info
new file mode 100644 (file)
index 0000000..97b3574
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0, TF_FLOAT, [2, 2, 3, 4]
+output, Softmax:0,     TF_FLOAT, [2, 2, 3, 4]
diff --git a/res/TensorFlowTests/Softmax_003/test.pbtxt b/res/TensorFlowTests/Softmax_003/test.pbtxt
new file mode 100644 (file)
index 0000000..c4b5ca2
--- /dev/null
@@ -0,0 +1,41 @@
+# Softmax with rank-4 tensor
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 2
+        }
+        dim {
+          size: 2
+        }
+        dim {
+          size: 3
+        }
+        dim {
+          size: 4
+        }
+      }
+    }
+  }
+}
+node {
+  name: "Softmax"
+  op: "Softmax"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}