From 07926396a7bd1c62f2a4ce2be2815fbb896d5774 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, 2 Jul 2019 13:29:48 +0900 Subject: [PATCH] [mocotest/tf] FusedBatchNorm_000 (#4041) This will add FusedBatchNorm_000 test material for minimul testing for FusedBatchNorm node Signed-off-by: SaeHie Park --- contrib/mocotest-tf/FusedBatchNorm_000/test.info | 3 + contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt | 158 ++++++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 contrib/mocotest-tf/FusedBatchNorm_000/test.info create mode 100644 contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt diff --git a/contrib/mocotest-tf/FusedBatchNorm_000/test.info b/contrib/mocotest-tf/FusedBatchNorm_000/test.info new file mode 100644 index 0000000..30840e8 --- /dev/null +++ b/contrib/mocotest-tf/FusedBatchNorm_000/test.info @@ -0,0 +1,3 @@ +# FusedBatchNorm +input, placeholder:0, TF_FLOAT, [1, 4, 4, 1] +output, FBN_01:0, TF_FLOAT, [1, 4, 4, 1] diff --git a/contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt b/contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt new file mode 100644 index 0000000..40cec4a --- /dev/null +++ b/contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt @@ -0,0 +1,158 @@ +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: "scale" + 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: "offset" + op: "Const" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { + size: 1 + } + } + float_val: 0.0 + } + } + } +} +node { + name: "FBN_01/mean" + op: "Const" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { + size: 1 + } + } + float_val: 0.0 + } + } + } +} +node { + name: "FBN_01/variance" + 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: "FBN_01" + op: "FusedBatchNorm" + input: "placeholder" + input: "scale" + input: "offset" + input: "FBN_01/mean" + input: "FBN_01/variance" + attr { + key: "T" + value { + type: DT_FLOAT + } + } + attr { + key: "data_format" + value { + s: "NHWC" + } + } + attr { + key: "epsilon" + value { + f: 0.001 + } + } + attr { + key: "is_training" + value { + b: false + } + } +} -- 2.7.4