From 4280a0f4b7e61e01daf21fcfbdf0e3523cf4a3df Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=84=B8=ED=9D=AC/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 16 Jul 2019 19:34:23 +0900 Subject: [PATCH] [res] TF_SMALL_NET_0010 (#4301) This will add TF_SMALL_NET_0010 test that has "BiasAdd" + "Add" network This is to test fusion of Add into BiasAdd Signed-off-by: SaeHie Park --- res/TensorFlowTests/TF_SMALL_NET_0010/test.info | 2 + res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt | 109 +++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 res/TensorFlowTests/TF_SMALL_NET_0010/test.info create mode 100644 res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt diff --git a/res/TensorFlowTests/TF_SMALL_NET_0010/test.info b/res/TensorFlowTests/TF_SMALL_NET_0010/test.info new file mode 100644 index 0000000..bcbc418 --- /dev/null +++ b/res/TensorFlowTests/TF_SMALL_NET_0010/test.info @@ -0,0 +1,2 @@ +input, Placeholder:0, TF_FLOAT, [1, 3, 3, 2] +output, Add:0, TF_FLOAT, [1, 3, 3, 2] diff --git a/res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt b/res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt new file mode 100644 index 0000000..b9c6c99 --- /dev/null +++ b/res/TensorFlowTests/TF_SMALL_NET_0010/test.pbtxt @@ -0,0 +1,109 @@ +# A simple network that has "BiasAdd" + "Add" +node { + name: "Placeholder" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 1 + } + dim { + size: 3 + } + dim { + size: 3 + } + dim { + size: 2 + } + } + } + } +} +node { + name: "bias_add_01/bias" + op: "Const" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { + size: 2 + } + } + float_val: 1.0 + float_val: -1.0 + } + } + } +} +node { + name: "bias_add_01" + op: "BiasAdd" + input: "Placeholder" + input: "bias_add_01/bias" + attr { + key: "T" + value { + type: DT_FLOAT + } + } + attr { + key: "data_format" + value { + s: "NHWC" + } + } +} +node { + name: "addparam" + op: "Const" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { + size: 2 + } + } + float_val: 2.0 + } + } + } +} +node { + name: "Add" + op: "Add" + input: "bias_add_01" + input: "addparam" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} -- 2.7.4