From 913db3251f275e73d861c72cd5ca3187e9c91d5f 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: Thu, 11 Jul 2019 15:56:39 +0900 Subject: [PATCH] [res] TF_SMALL_NET_0007 with Conv2D+Mul (#4200) This will introduce TF_SMALL_NET_0007 having Conv2D and Mul node This is to check FuseBinaryIntoPreceding transformation that fuses Mul into Conv2D kernel and be removed Signed-off-by: SaeHie Park --- res/TensorFlowTests/TF_SMALL_NET_0007/test.info | 2 + res/TensorFlowTests/TF_SMALL_NET_0007/test.pbtxt | 151 +++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 res/TensorFlowTests/TF_SMALL_NET_0007/test.info create mode 100644 res/TensorFlowTests/TF_SMALL_NET_0007/test.pbtxt diff --git a/res/TensorFlowTests/TF_SMALL_NET_0007/test.info b/res/TensorFlowTests/TF_SMALL_NET_0007/test.info new file mode 100644 index 0000000..59c3f61 --- /dev/null +++ b/res/TensorFlowTests/TF_SMALL_NET_0007/test.info @@ -0,0 +1,2 @@ +input, Placeholder:0, TF_FLOAT, [1, 3, 3, 5] +output, Mul:0, TF_FLOAT, [1, 3, 3, 2] diff --git a/res/TensorFlowTests/TF_SMALL_NET_0007/test.pbtxt b/res/TensorFlowTests/TF_SMALL_NET_0007/test.pbtxt new file mode 100644 index 0000000..10f9f35 --- /dev/null +++ b/res/TensorFlowTests/TF_SMALL_NET_0007/test.pbtxt @@ -0,0 +1,151 @@ +# A simple network that has "Conv2D" + "Mul" +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: 5 + } + } + } + } +} +node { + name: "weights" + 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 + } + dim { + size: 5 + } + dim { + size: 2 + } + } + float_val: 1.100000023841858 + } + } + } +} +node { + name: "Conv2D" + op: "Conv2D" + input: "Placeholder" + input: "weights" + 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: "SAME" + } + } + attr { + key: "strides" + value { + list { + i: 1 + i: 1 + i: 1 + i: 1 + } + } + } + attr { + key: "use_cudnn_on_gpu" + value { + b: true + } + } +} +node { + name: "mulparam" + 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: "Mul" + op: "Mul" + input: "Conv2D" + input: "mulparam" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} -- 2.7.4