From 376c962e36e64d8cb05a5d0c51fa8552ff9da16d 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: Fri, 23 Aug 2019 10:12:36 +0900 Subject: [PATCH] [res] Add renamed NET test from Multiple_IO_XXXX (#6821) This commit add (will-be) renamed test cases of Multiple_IO_XXXX. NET_0022 <- Multiple_IO_000 NET_0023 <- Multiple_IO_001 NET_0024 <- Multiple_IO_002 Signed-off-by: Cheongyo Bahk --- res/TensorFlowTests/NET_0022/test.info | 5 +++ res/TensorFlowTests/NET_0022/test.pbtxt | 70 ++++++++++++++++++++++++++++++ res/TensorFlowTests/NET_0023/test.info | 2 + res/TensorFlowTests/NET_0023/test.pbtxt | 72 +++++++++++++++++++++++++++++++ res/TensorFlowTests/NET_0024/test.info | 3 ++ res/TensorFlowTests/NET_0024/test.pbtxt | 76 +++++++++++++++++++++++++++++++++ 6 files changed, 228 insertions(+) create mode 100644 res/TensorFlowTests/NET_0022/test.info create mode 100644 res/TensorFlowTests/NET_0022/test.pbtxt create mode 100644 res/TensorFlowTests/NET_0023/test.info create mode 100644 res/TensorFlowTests/NET_0023/test.pbtxt create mode 100644 res/TensorFlowTests/NET_0024/test.info create mode 100644 res/TensorFlowTests/NET_0024/test.pbtxt diff --git a/res/TensorFlowTests/NET_0022/test.info b/res/TensorFlowTests/NET_0022/test.info new file mode 100644 index 0000000..89c33ee --- /dev/null +++ b/res/TensorFlowTests/NET_0022/test.info @@ -0,0 +1,5 @@ +# this has two inputs and two outputs. Let's make our code to handle multiple inputs and outputs. +input, input_1:0, TF_FLOAT, [2, 2] +input, input_2:0, TF_FLOAT, [2, 2] +output, output_1:0, TF_FLOAT, [2, 2] +output, output_2:0, TF_FLOAT, [2, 2] diff --git a/res/TensorFlowTests/NET_0022/test.pbtxt b/res/TensorFlowTests/NET_0022/test.pbtxt new file mode 100644 index 0000000..c8879e8 --- /dev/null +++ b/res/TensorFlowTests/NET_0022/test.pbtxt @@ -0,0 +1,70 @@ +node { + name: "input_1" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 2 + } + dim { + size: 2 + } + } + } + } +} +node { + name: "input_2" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 2 + } + dim { + size: 2 + } + } + } + } +} +node { + name: "output_1" + op: "Add" + input: "input_1" + input: "input_2" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} +node { + name: "output_2" + op: "Add" + input: "input_1" + input: "input_2" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} diff --git a/res/TensorFlowTests/NET_0023/test.info b/res/TensorFlowTests/NET_0023/test.info new file mode 100644 index 0000000..856de94 --- /dev/null +++ b/res/TensorFlowTests/NET_0023/test.info @@ -0,0 +1,2 @@ +# this has no input +output, out:0, TF_FLOAT, [2, 2] diff --git a/res/TensorFlowTests/NET_0023/test.pbtxt b/res/TensorFlowTests/NET_0023/test.pbtxt new file mode 100644 index 0000000..2ef5a0b --- /dev/null +++ b/res/TensorFlowTests/NET_0023/test.pbtxt @@ -0,0 +1,72 @@ +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: 2 + } + } + float_val: 1 + float_val: 2 + float_val: 3 + float_val: 4 + } + } + } +} +node { + name: "Const_1" + op: "Const" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { + size: 2 + } + dim { + size: 2 + } + } + float_val: 1 + float_val: 2 + float_val: 3 + float_val: 4 + } + } + } +} +node { + name: "out" + op: "Add" + input: "Const" + input: "Const_1" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} diff --git a/res/TensorFlowTests/NET_0024/test.info b/res/TensorFlowTests/NET_0024/test.info new file mode 100644 index 0000000..f049f9d --- /dev/null +++ b/res/TensorFlowTests/NET_0024/test.info @@ -0,0 +1,3 @@ +input, fst:0, TF_FLOAT, [1, 6, 1, 1] +input, snd:0, TF_FLOAT, [1, 3, 1, 1] +output, out:0, TF_FLOAT, [1, 9, 1, 1] diff --git a/res/TensorFlowTests/NET_0024/test.pbtxt b/res/TensorFlowTests/NET_0024/test.pbtxt new file mode 100644 index 0000000..ee3f99d --- /dev/null +++ b/res/TensorFlowTests/NET_0024/test.pbtxt @@ -0,0 +1,76 @@ +# This example intentionally declares "snd" node before "fst" node +node { + name: "snd" + op: "Placeholder" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "shape" + value { + shape { + dim { size: 1 } + dim { size: 3 } + dim { size: 1 } + dim { size: 1 } + } + } + } +} +node { + name: "fst" + op: "Placeholder" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "shape" + value { + shape { + dim { size: 1 } + dim { size: 6 } + dim { size: 1 } + dim { size: 1 } + } + } + } +} +node { + name: "axis" + op: "Const" + attr { + key: "dtype" + value { type: DT_INT32 } + } + attr { + key: "value" + value { + tensor { + dtype: DT_INT32 + tensor_shape { } + int_val: 1 + } + } + } +} +node { + name: "out" + op: "ConcatV2" + input: "fst" + input: "snd" + input: "axis" + attr { + key: "N" + value { i: 2 } + } + attr { + key: "T" + value { type: DT_FLOAT } + } + attr { + key: "Tidx" + value { type: DT_INT32 } + } +} -- 2.7.4