From: 박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Thu, 11 Jul 2019 06:56:39 +0000 (+0900) Subject: [res] TF_SMALL_NET_0007 with Conv2D+Mul (#4200) X-Git-Tag: nncc_backup~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=913db3251f275e73d861c72cd5ca3187e9c91d5f;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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 + } + } +}