From: 윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Mon, 25 Nov 2019 06:12:28 +0000 (+0900) Subject: [res/TensorFlowTests] test cases to check errors (continued) (#9168) X-Git-Tag: submit/tizen/20191205.083104~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a0107800665c0f3d800669f95cebd7b8fca8e8d;p=platform%2Fcore%2Fml%2Fnnfw.git [res/TensorFlowTests] test cases to check errors (continued) (#9168) This is test cases for wrong model or info files. Signed-off-by: Hyun Sik Yoon --- diff --git a/res/TensorFlowTests/UI_0003/test.info b/res/TensorFlowTests/UI_0003/test.info new file mode 100644 index 0000000..738d268 --- /dev/null +++ b/res/TensorFlowTests/UI_0003/test.info @@ -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 index 0000000..2a6b322 --- /dev/null +++ b/res/TensorFlowTests/UI_0003/test.manifest @@ -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 index 0000000..4d5154e --- /dev/null +++ b/res/TensorFlowTests/UI_0003/test.pbtxt @@ -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 index 0000000..5988da9 --- /dev/null +++ b/res/TensorFlowTests/UI_0004/test.info @@ -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 index 0000000..be3d615 --- /dev/null +++ b/res/TensorFlowTests/UI_0004/test.manifest @@ -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 index 0000000..d4b7ee1 --- /dev/null +++ b/res/TensorFlowTests/UI_0004/test.pbtxt @@ -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 index 0000000..6759094 --- /dev/null +++ b/res/TensorFlowTests/UI_0005/test.info @@ -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 index 0000000..7075344 --- /dev/null +++ b/res/TensorFlowTests/UI_0005/test.manifest @@ -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 index 0000000..d4b7ee1 --- /dev/null +++ b/res/TensorFlowTests/UI_0005/test.pbtxt @@ -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 index 0000000..bdf764e --- /dev/null +++ b/res/TensorFlowTests/UI_0006/test.info @@ -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 index 0000000..e0ea9b3 --- /dev/null +++ b/res/TensorFlowTests/UI_0006/test.manifest @@ -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 index 0000000..5806251 --- /dev/null +++ b/res/TensorFlowTests/UI_0006/test.pbtxt @@ -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 index 0000000..ad84e8d --- /dev/null +++ b/res/TensorFlowTests/UI_0007/test.info @@ -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 index 0000000..94fdce5 --- /dev/null +++ b/res/TensorFlowTests/UI_0007/test.manifest @@ -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 index 0000000..5806251 --- /dev/null +++ b/res/TensorFlowTests/UI_0007/test.pbtxt @@ -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 index 0000000..94815a5 --- /dev/null +++ b/res/TensorFlowTests/UI_0008/test.info @@ -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 index 0000000..858aae6 --- /dev/null +++ b/res/TensorFlowTests/UI_0008/test.manifest @@ -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 index 0000000..5806251 --- /dev/null +++ b/res/TensorFlowTests/UI_0008/test.pbtxt @@ -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 + } + } +}