From: 윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Fri, 22 Nov 2019 01:00:16 +0000 (+0900) Subject: [res/TensorFlowTests] Wrong models: UI_0002, UI_0003 (#9109) X-Git-Tag: submit/tizen/20191205.083104~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de48905f7ae7659a9e661cd519244d758597b0a6;p=platform%2Fcore%2Fml%2Fnnfw.git [res/TensorFlowTests] Wrong models: UI_0002, UI_0003 (#9109) 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 --- diff --git a/res/TensorFlowTests/UI_0001/test.info b/res/TensorFlowTests/UI_0001/test.info new file mode 100644 index 0000000..2ce0c6d --- /dev/null +++ b/res/TensorFlowTests/UI_0001/test.info @@ -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 index 0000000..4721034 --- /dev/null +++ b/res/TensorFlowTests/UI_0001/test.manifest @@ -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 index 0000000..167d7dc --- /dev/null +++ b/res/TensorFlowTests/UI_0001/test.pbtxt @@ -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 index 0000000..2ce0c6d --- /dev/null +++ b/res/TensorFlowTests/UI_0002/test.info @@ -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 index 0000000..1823426 --- /dev/null +++ b/res/TensorFlowTests/UI_0002/test.manifest @@ -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 index 0000000..e23acac --- /dev/null +++ b/res/TensorFlowTests/UI_0002/test.pbtxt @@ -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" + } + } +}