From b821b1fe18c2b9bda79db1aa8e8943233e827f56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=B2=9C=EA=B5=90/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 19 Aug 2019 16:06:57 +0900 Subject: [PATCH] [res] Regression test for Add (#6513) This commit adds Regression test for Add network with Placeholder and Const operations as inputs. Signed-off-by: Cheongyo Bahk --- res/TensorFlowTests/REGRESSION_0000/test.info | 2 + res/TensorFlowTests/REGRESSION_0000/test.pbtxt | 68 ++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 res/TensorFlowTests/REGRESSION_0000/test.info create mode 100644 res/TensorFlowTests/REGRESSION_0000/test.pbtxt diff --git a/res/TensorFlowTests/REGRESSION_0000/test.info b/res/TensorFlowTests/REGRESSION_0000/test.info new file mode 100644 index 0000000..1012f87 --- /dev/null +++ b/res/TensorFlowTests/REGRESSION_0000/test.info @@ -0,0 +1,2 @@ +input, Placeholder:0, TF_FLOAT, [2, 3] +output, Add:0, TF_FLOAT, [2, 3] diff --git a/res/TensorFlowTests/REGRESSION_0000/test.pbtxt b/res/TensorFlowTests/REGRESSION_0000/test.pbtxt new file mode 100644 index 0000000..aa552ce --- /dev/null +++ b/res/TensorFlowTests/REGRESSION_0000/test.pbtxt @@ -0,0 +1,68 @@ +# Add network with Placeholder and Const as arguments +node { + name: "Placeholder" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 2 + } + dim { + size: 3 + } + } + } + } +} +node { + name: "Const" + op: "Const" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { + size: 2 + } + dim { + size: 3 + } + } + float_val: 1.1 + float_val: 2.2 + float_val: 3.3 + float_val: 4.4 + float_val: 5.5 + float_val: 6.6 + } + } + } +} +node { + name: "Add" + op: "Add" + input: "Placeholder" + input: "Const" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} -- 2.7.4