[res/TensorFlowTests] test cases to check errors (continued) (#9168)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Mon, 25 Nov 2019 06:12:28 +0000 (15:12 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 25 Nov 2019 06:12:28 +0000 (15:12 +0900)
This is test cases for wrong model or info files.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
18 files changed:
res/TensorFlowTests/UI_0003/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0003/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0003/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/UI_0004/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0004/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0004/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/UI_0005/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0005/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0005/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/UI_0006/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0006/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0006/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/UI_0007/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0007/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0007/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/UI_0008/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0008/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0008/test.pbtxt [new file with mode: 0644]

diff --git a/res/TensorFlowTests/UI_0003/test.info b/res/TensorFlowTests/UI_0003/test.info
new file mode 100644 (file)
index 0000000..738d268
--- /dev/null
@@ -0,0 +1,2 @@
+input,  relu1:0,  TF_FLOAT,  [1, 2]
+output, relu2:0,  TF_FLOAT,  [1, 2]
diff --git a/res/TensorFlowTests/UI_0003/test.manifest b/res/TensorFlowTests/UI_0003/test.manifest
new file mode 100644 (file)
index 0000000..2a6b322
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Wrong network. Network without proper input (const or placeholder)
diff --git a/res/TensorFlowTests/UI_0003/test.pbtxt b/res/TensorFlowTests/UI_0003/test.pbtxt
new file mode 100644 (file)
index 0000000..4d5154e
--- /dev/null
@@ -0,0 +1,22 @@
+node {
+  name: "relu1"
+  op: "Relu"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
+node {
+  name: "relu2"
+  op: "Relu"
+  input: "relu1"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UI_0004/test.info b/res/TensorFlowTests/UI_0004/test.info
new file mode 100644 (file)
index 0000000..5988da9
--- /dev/null
@@ -0,0 +1,2 @@
+input,  not_existing_input:0,  TF_FLOAT,  [1, 2]
+output, relu:0,  TF_FLOAT,  [1, 2]
diff --git a/res/TensorFlowTests/UI_0004/test.manifest b/res/TensorFlowTests/UI_0004/test.manifest
new file mode 100644 (file)
index 0000000..be3d615
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Wrong info file. Input name in info file does not exist in pb file.
diff --git a/res/TensorFlowTests/UI_0004/test.pbtxt b/res/TensorFlowTests/UI_0004/test.pbtxt
new file mode 100644 (file)
index 0000000..d4b7ee1
--- /dev/null
@@ -0,0 +1,34 @@
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "output/relu"
+  op: "Relu"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UI_0005/test.info b/res/TensorFlowTests/UI_0005/test.info
new file mode 100644 (file)
index 0000000..6759094
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0,  TF_FLOAT,  [1, 2]
+output, not_existing_output_name:0,  TF_FLOAT,  [1, 2]
diff --git a/res/TensorFlowTests/UI_0005/test.manifest b/res/TensorFlowTests/UI_0005/test.manifest
new file mode 100644 (file)
index 0000000..7075344
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Wrong info file. Output name in info file does not exist in pb file.
diff --git a/res/TensorFlowTests/UI_0005/test.pbtxt b/res/TensorFlowTests/UI_0005/test.pbtxt
new file mode 100644 (file)
index 0000000..d4b7ee1
--- /dev/null
@@ -0,0 +1,34 @@
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "output/relu"
+  op: "Relu"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UI_0006/test.info b/res/TensorFlowTests/UI_0006/test.info
new file mode 100644 (file)
index 0000000..bdf764e
--- /dev/null
@@ -0,0 +1,2 @@
+input,  Placeholder:0,  TF_FLOAT
+output, relu:0,  TF_FLOAT,  [1, 2]
diff --git a/res/TensorFlowTests/UI_0006/test.manifest b/res/TensorFlowTests/UI_0006/test.manifest
new file mode 100644 (file)
index 0000000..e0ea9b3
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Wrong info file. Missing input shape.
diff --git a/res/TensorFlowTests/UI_0006/test.pbtxt b/res/TensorFlowTests/UI_0006/test.pbtxt
new file mode 100644 (file)
index 0000000..5806251
--- /dev/null
@@ -0,0 +1,34 @@
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "relu"
+  op: "Relu"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UI_0007/test.info b/res/TensorFlowTests/UI_0007/test.info
new file mode 100644 (file)
index 0000000..ad84e8d
--- /dev/null
@@ -0,0 +1 @@
+input,  Placeholder:0,  TF_FLOAT, [1, 2]
diff --git a/res/TensorFlowTests/UI_0007/test.manifest b/res/TensorFlowTests/UI_0007/test.manifest
new file mode 100644 (file)
index 0000000..94fdce5
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Wrong info file. No output in info file
diff --git a/res/TensorFlowTests/UI_0007/test.pbtxt b/res/TensorFlowTests/UI_0007/test.pbtxt
new file mode 100644 (file)
index 0000000..5806251
--- /dev/null
@@ -0,0 +1,34 @@
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "relu"
+  op: "Relu"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UI_0008/test.info b/res/TensorFlowTests/UI_0008/test.info
new file mode 100644 (file)
index 0000000..94815a5
--- /dev/null
@@ -0,0 +1,3 @@
+input,  Placeholder:0,  TF_FLOAT, [1, 2]
+output,  relu:0,  TF_FLOAT, [1, 2]
+output,  relu:0,  TF_FLOAT, [1, 2]
diff --git a/res/TensorFlowTests/UI_0008/test.manifest b/res/TensorFlowTests/UI_0008/test.manifest
new file mode 100644 (file)
index 0000000..858aae6
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Multiple output names in info file that have same name
diff --git a/res/TensorFlowTests/UI_0008/test.pbtxt b/res/TensorFlowTests/UI_0008/test.pbtxt
new file mode 100644 (file)
index 0000000..5806251
--- /dev/null
@@ -0,0 +1,34 @@
+node {
+  name: "Placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 2
+        }
+      }
+    }
+  }
+}
+node {
+  name: "relu"
+  op: "Relu"
+  input: "Placeholder"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+}