From b6eae31f8c061710a6c7c4da01e2b7668896445c 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: Mon, 24 Jun 2019 08:46:42 +0900 Subject: [PATCH] [mocotest/tf] add avgpool2d_001 (#3928) This will add AvgPool_001 test for VALID padding Signed-off-by: SaeHie Park --- contrib/mocotest-tf/AvgPool_001/test.info | 2 + contrib/mocotest-tf/AvgPool_001/test.pbtxt | 74 ++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 contrib/mocotest-tf/AvgPool_001/test.info create mode 100644 contrib/mocotest-tf/AvgPool_001/test.pbtxt diff --git a/contrib/mocotest-tf/AvgPool_001/test.info b/contrib/mocotest-tf/AvgPool_001/test.info new file mode 100644 index 0000000..2cf5bfe --- /dev/null +++ b/contrib/mocotest-tf/AvgPool_001/test.info @@ -0,0 +1,2 @@ +input, placeholder:0, TF_FLOAT, [1, 4, 4, 1] +output, avgpool2d:0, TF_FLOAT, [1, 2, 2, 1] diff --git a/contrib/mocotest-tf/AvgPool_001/test.pbtxt b/contrib/mocotest-tf/AvgPool_001/test.pbtxt new file mode 100644 index 0000000..faf117c --- /dev/null +++ b/contrib/mocotest-tf/AvgPool_001/test.pbtxt @@ -0,0 +1,74 @@ +node { + name: "placeholder" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 1 + } + dim { + size: 4 + } + dim { + size: 4 + } + dim { + size: 1 + } + } + } + } +} +node { + name: "avgpool2d" + op: "AvgPool" + input: "placeholder" + attr { + key: "T" + value { + type: DT_FLOAT + } + } + attr { + key: "data_format" + value { + s: "NHWC" + } + } + attr { + key: "ksize" + value { + list { + i: 1 + i: 2 + i: 2 + i: 1 + } + } + } + attr { + key: "padding" + value { + s: "VALID" + } + } + attr { + key: "strides" + value { + list { + i: 1 + i: 2 + i: 2 + i: 1 + } + } + } +} -- 2.7.4