From cd3adb54e5f6f48dd99ef3396704c3aa234131b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=82=A8=EA=B6=81=EC=84=9D/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 24 Jun 2019 12:28:10 +0900 Subject: [PATCH] [moco/tf] Introduce BiasAdd tests for moco/tf (#3922) This commit will introduce BiasAdd_000 and BiasAdd_001 tests for `moco/tf` Signed-off-by: Seok NamKoong --- contrib/mocotest-tf/BiasAdd_000/INFERENCE | 0 contrib/mocotest-tf/BiasAdd_000/test.info | 1 + contrib/mocotest-tf/BiasAdd_000/test.pbtxt | 57 ++++++++++++++++++++++++++++++ contrib/mocotest-tf/BiasAdd_001/INFERENCE | 0 contrib/mocotest-tf/BiasAdd_001/test.info | 1 + contrib/mocotest-tf/BiasAdd_001/test.pbtxt | 57 ++++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+) create mode 100644 contrib/mocotest-tf/BiasAdd_000/INFERENCE create mode 100644 contrib/mocotest-tf/BiasAdd_000/test.info create mode 100644 contrib/mocotest-tf/BiasAdd_000/test.pbtxt create mode 100644 contrib/mocotest-tf/BiasAdd_001/INFERENCE create mode 100644 contrib/mocotest-tf/BiasAdd_001/test.info create mode 100644 contrib/mocotest-tf/BiasAdd_001/test.pbtxt diff --git a/contrib/mocotest-tf/BiasAdd_000/INFERENCE b/contrib/mocotest-tf/BiasAdd_000/INFERENCE new file mode 100644 index 0000000..e69de29 diff --git a/contrib/mocotest-tf/BiasAdd_000/test.info b/contrib/mocotest-tf/BiasAdd_000/test.info new file mode 100644 index 0000000..cbb4f38 --- /dev/null +++ b/contrib/mocotest-tf/BiasAdd_000/test.info @@ -0,0 +1 @@ +output, out:0, TF_FLOAT, [1, 5, 5, 3] diff --git a/contrib/mocotest-tf/BiasAdd_000/test.pbtxt b/contrib/mocotest-tf/BiasAdd_000/test.pbtxt new file mode 100644 index 0000000..642eac6 --- /dev/null +++ b/contrib/mocotest-tf/BiasAdd_000/test.pbtxt @@ -0,0 +1,57 @@ +node { + name: "val" + op: "Const" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { size: 1 } + dim { size: 5 } + dim { size: 5 } + dim { size: 3 } + } + float_val: 2.1 + } + } + } +} +node { + name: "bias" + op: "Const" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { size: 3 } + } + float_val: 1.1 + } + } + } +} +node { + name: "out" + op: "BiasAdd" + input: "val" + input: "bias" + attr { + key: "T" + value { type: DT_FLOAT } + } + attr { + key: "data_format" + value { s: "NHWC" } + } +} diff --git a/contrib/mocotest-tf/BiasAdd_001/INFERENCE b/contrib/mocotest-tf/BiasAdd_001/INFERENCE new file mode 100644 index 0000000..e69de29 diff --git a/contrib/mocotest-tf/BiasAdd_001/test.info b/contrib/mocotest-tf/BiasAdd_001/test.info new file mode 100644 index 0000000..04c89d6 --- /dev/null +++ b/contrib/mocotest-tf/BiasAdd_001/test.info @@ -0,0 +1 @@ +output, out:0, TF_FLOAT, [1, 3, 4, 4] diff --git a/contrib/mocotest-tf/BiasAdd_001/test.pbtxt b/contrib/mocotest-tf/BiasAdd_001/test.pbtxt new file mode 100644 index 0000000..6b54308 --- /dev/null +++ b/contrib/mocotest-tf/BiasAdd_001/test.pbtxt @@ -0,0 +1,57 @@ +node { + name: "val" + op: "Const" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { size: 1 } + dim { size: 3 } + dim { size: 4 } + dim { size: 4 } + } + float_val: 2.1 + } + } + } +} +node { + name: "bias" + op: "Const" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { size: 3 } + } + float_val: 1.1 + } + } + } +} +node { + name: "out" + op: "BiasAdd" + input: "val" + input: "bias" + attr { + key: "T" + value { type: DT_FLOAT } + } + attr { + key: "data_format" + value { s: "NCHW" } + } +} -- 2.7.4