[res/TensorFlowTests] Wrong models: UI_0002, UI_0003 (#9109)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Fri, 22 Nov 2019 01:00:16 +0000 (10:00 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 22 Nov 2019 01:00:16 +0000 (10:00 +0900)
This adds two wrong models:
- UI_0002: Cannot find node whose name is input node name of Conv2D
- UI_0003: two nodes have the same name

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
res/TensorFlowTests/UI_0001/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0001/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0001/test.pbtxt [new file with mode: 0644]
res/TensorFlowTests/UI_0002/test.info [new file with mode: 0644]
res/TensorFlowTests/UI_0002/test.manifest [new file with mode: 0644]
res/TensorFlowTests/UI_0002/test.pbtxt [new file with mode: 0644]

diff --git a/res/TensorFlowTests/UI_0001/test.info b/res/TensorFlowTests/UI_0001/test.info
new file mode 100644 (file)
index 0000000..2ce0c6d
--- /dev/null
@@ -0,0 +1,2 @@
+input,  input:0,  TF_FLOAT,  [1, 5, 5, 3]
+output, InceptionV3/InceptionV3/Conv2d_1a_3x3/Relu:0,  TF_FLOAT,  [1, 2, 2, 4]
diff --git a/res/TensorFlowTests/UI_0001/test.manifest b/res/TensorFlowTests/UI_0001/test.manifest
new file mode 100644 (file)
index 0000000..4721034
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Wrong network : Cannot find a node whose name is used as an input of Conv2D
diff --git a/res/TensorFlowTests/UI_0001/test.pbtxt b/res/TensorFlowTests/UI_0001/test.pbtxt
new file mode 100644 (file)
index 0000000..167d7dc
--- /dev/null
@@ -0,0 +1,110 @@
+node {
+  name: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 3
+          }
+          dim {
+            size: 3
+          }
+          dim {
+            size: 3
+          }
+          dim {
+            size: 4
+          }
+        }
+        float_val: 1.0
+      }
+    }
+  }
+}
+node {
+  name: "input"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 5
+        }
+        dim {
+          size: 5
+        }
+        dim {
+          size: 3
+        }
+      }
+    }
+  }
+}
+node {
+  name: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D"
+  op: "Conv2D"
+# error -----
+# "nowhere:0" does not exist
+  input: "nowhere:0"
+  input: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "data_format"
+    value {
+      s: "NHWC"
+    }
+  }
+  attr {
+    key: "dilations"
+    value {
+      list {
+        i: 1
+        i: 1
+        i: 1
+        i: 1
+      }
+    }
+  }
+  attr {
+    key: "padding"
+    value {
+      s: "VALID"
+    }
+  }
+  attr {
+    key: "strides"
+    value {
+      list {
+        i: 1
+        i: 2
+        i: 2
+        i: 1
+      }
+    }
+  }
+}
diff --git a/res/TensorFlowTests/UI_0002/test.info b/res/TensorFlowTests/UI_0002/test.info
new file mode 100644 (file)
index 0000000..2ce0c6d
--- /dev/null
@@ -0,0 +1,2 @@
+input,  input:0,  TF_FLOAT,  [1, 5, 5, 3]
+output, InceptionV3/InceptionV3/Conv2d_1a_3x3/Relu:0,  TF_FLOAT,  [1, 2, 2, 4]
diff --git a/res/TensorFlowTests/UI_0002/test.manifest b/res/TensorFlowTests/UI_0002/test.manifest
new file mode 100644 (file)
index 0000000..1823426
--- /dev/null
@@ -0,0 +1 @@
+SUMMARY: Wrong network : Conv2D and biasAdd has a same name
diff --git a/res/TensorFlowTests/UI_0002/test.pbtxt b/res/TensorFlowTests/UI_0002/test.pbtxt
new file mode 100644 (file)
index 0000000..e23acac
--- /dev/null
@@ -0,0 +1,150 @@
+node {
+  name: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 3
+          }
+          dim {
+            size: 3
+          }
+          dim {
+            size: 3
+          }
+          dim {
+            size: 4
+          }
+        }
+        float_val: 1.0
+      }
+    }
+  }
+}
+node {
+  name: "input"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 5
+        }
+        dim {
+          size: 5
+        }
+        dim {
+          size: 3
+        }
+      }
+    }
+  }
+}
+node {
+  name: "Duplicate_name"
+  op: "Conv2D"
+  input: "input_wrong:0"
+  input: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "data_format"
+    value {
+      s: "NHWC"
+    }
+  }
+  attr {
+    key: "dilations"
+    value {
+      list {
+        i: 1
+        i: 1
+        i: 1
+        i: 1
+      }
+    }
+  }
+  attr {
+    key: "padding"
+    value {
+      s: "VALID"
+    }
+  }
+  attr {
+    key: "strides"
+    value {
+      list {
+        i: 1
+        i: 2
+        i: 2
+        i: 1
+      }
+    }
+  }
+}
+node {
+  name: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D_bn_offset"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 4
+          }
+        }
+        float_val: 1.0
+      }
+    }
+  }
+}
+node {
+  name: "Duplicate_name"
+  op: "BiasAdd"
+  input: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D"
+  input: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D_bn_offset"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "data_format"
+    value {
+      s: "NHWC"
+    }
+  }
+}