From 222a9e5f78ba8ae4f348eab408d18d998ec34592 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 18 Apr 2019 16:13:17 +0900 Subject: [PATCH] [moco/test/tf] Testcase where there is no input (#3305) This is to check if moco works with a model that has no input. Signed-off-by: Hyun Sik Yoon --- contrib/moco/test/tf/Multiple_IO_001/test.info | 2 + contrib/moco/test/tf/Multiple_IO_001/test.pbtxt | 72 +++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 contrib/moco/test/tf/Multiple_IO_001/test.info create mode 100644 contrib/moco/test/tf/Multiple_IO_001/test.pbtxt diff --git a/contrib/moco/test/tf/Multiple_IO_001/test.info b/contrib/moco/test/tf/Multiple_IO_001/test.info new file mode 100644 index 0000000..856de94 --- /dev/null +++ b/contrib/moco/test/tf/Multiple_IO_001/test.info @@ -0,0 +1,2 @@ +# this has no input +output, out:0, TF_FLOAT, [2, 2] diff --git a/contrib/moco/test/tf/Multiple_IO_001/test.pbtxt b/contrib/moco/test/tf/Multiple_IO_001/test.pbtxt new file mode 100644 index 0000000..2ef5a0b --- /dev/null +++ b/contrib/moco/test/tf/Multiple_IO_001/test.pbtxt @@ -0,0 +1,72 @@ +node { + name: "Const" + 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 + } + } + float_val: 1 + float_val: 2 + float_val: 3 + float_val: 4 + } + } + } +} +node { + name: "Const_1" + 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 + } + } + float_val: 1 + float_val: 2 + float_val: 3 + float_val: 4 + } + } + } +} +node { + name: "out" + op: "Add" + input: "Const" + input: "Const_1" + attr { + key: "T" + value { + type: DT_FLOAT + } + } +} -- 2.7.4