From: 윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Thu, 17 Oct 2019 23:33:31 +0000 (+0900) Subject: [res] Tensorflow test file for Relu( Add( Conv2D, Scalar )) (#8282) X-Git-Tag: submit/tizen/20191205.083104~708 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8136e7aeba7375bb6e72fe351e5ad74eb4aa563e;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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 } + } +}