From 8136e7aeba7375bb6e72fe351e5ad74eb4aa563e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 18 Oct 2019 08:33:31 +0900 Subject: [PATCH] [res] Tensorflow test file for Relu( Add( Conv2D, Scalar )) (#8282) This adds Conv2D + Add + ReLU where Add's Const operand is a scalar (size 1 tensor). To check exo handles this OK. Signed-off-by: Hyun Sik Yoon --- res/TensorFlowTests/NET_0036/test.info | 2 + res/TensorFlowTests/NET_0036/test.manifest | 1 + res/TensorFlowTests/NET_0036/test.pbtxt | 146 +++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 res/TensorFlowTests/NET_0036/test.info create mode 100644 res/TensorFlowTests/NET_0036/test.manifest create mode 100644 res/TensorFlowTests/NET_0036/test.pbtxt diff --git a/res/TensorFlowTests/NET_0036/test.info b/res/TensorFlowTests/NET_0036/test.info new file mode 100644 index 0000000..42e88c1 --- /dev/null +++ b/res/TensorFlowTests/NET_0036/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_0036/test.manifest b/res/TensorFlowTests/NET_0036/test.manifest new file mode 100644 index 0000000..820ab40 --- /dev/null +++ b/res/TensorFlowTests/NET_0036/test.manifest @@ -0,0 +1 @@ +SUMMARY: Conv2D + Add + ReLU where Add's Const operand is a scalar (size 1 tensor) diff --git a/res/TensorFlowTests/NET_0036/test.pbtxt b/res/TensorFlowTests/NET_0036/test.pbtxt new file mode 100644 index 0000000..3c9cdec --- /dev/null +++ b/res/TensorFlowTests/NET_0036/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: "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: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D" + input: "add_const" + attr { + key: "T" + value { type: DT_FLOAT } + } +} +node { + name: "relu" + op: "Relu" + input: "add" + attr { + key: "T" + value { type: DT_FLOAT } + } +} -- 2.7.4