From: 윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Fri, 18 Oct 2019 05:07:29 +0000 (+0900) Subject: [res/TensorFlowTests] NET_0037 test case (#8302) X-Git-Tag: submit/tizen/20191205.083104~697 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c120fd076c0907320b75250ad848ec914ca31144;p=platform%2Fcore%2Fml%2Fnnfw.git [res/TensorFlowTests] NET_0037 test case (#8302) * [res/TensorFlowTests] NET_0037 test case This adds NET_0037, Conv2D + ReLU + Add. By exo, Conv2D and ReLU are fused but Add isn't. Signed-off-by: Hyun Sik Yoon * simple description --- diff --git a/res/TensorFlowTests/NET_0037/test.info b/res/TensorFlowTests/NET_0037/test.info new file mode 100644 index 0000000..42e88c1 --- /dev/null +++ b/res/TensorFlowTests/NET_0037/test.info @@ -0,0 +1,2 @@ +input, input:0, TF_FLOAT, [1, 5, 5, 3] +output, relu:0, TF_FLOAT, [1, 2, 2, 4] diff --git a/res/TensorFlowTests/NET_0037/test.manifest b/res/TensorFlowTests/NET_0037/test.manifest new file mode 100644 index 0000000..b82ccb6 --- /dev/null +++ b/res/TensorFlowTests/NET_0037/test.manifest @@ -0,0 +1 @@ +SUMMARY: Conv2D + ReLU + Add diff --git a/res/TensorFlowTests/NET_0037/test.pbtxt b/res/TensorFlowTests/NET_0037/test.pbtxt new file mode 100644 index 0000000..674366f --- /dev/null +++ b/res/TensorFlowTests/NET_0037/test.pbtxt @@ -0,0 +1,146 @@ +# Conv2D and its inputs are borrowed from NET_0025. +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" + input: "input: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: "relu" + op: "Relu" + input: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D" + attr { + key: "T" + value { type: DT_FLOAT } + } +} +node { + name: "add_const" + op: "Const" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { dim { size: 1 } } + float_val: 1.0 + } + } + } +} +node { + name: "add" + op: "Add" + input: "relu" + input: "add_const" + attr { + key: "T" + value { type: DT_FLOAT } + } +}