From 7a1ef5715e5d1832497486f462785fe2b1712d92 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: Wed, 8 May 2019 12:54:50 +0900 Subject: [PATCH] [moco/test/tf] test cases with Const (#3409) This commit adds test cases with Const operation. Signed-off-by: Hyun Sik Yoon --- contrib/moco/test/tf/Const_000/test.info | 1 + contrib/moco/test/tf/Const_000/test.pbtxt | 32 +++++++++++++++++++++++++++++++ contrib/moco/test/tf/Const_001/test.info | 1 + contrib/moco/test/tf/Const_001/test.pbtxt | 32 +++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 contrib/moco/test/tf/Const_000/test.info create mode 100644 contrib/moco/test/tf/Const_000/test.pbtxt create mode 100644 contrib/moco/test/tf/Const_001/test.info create mode 100644 contrib/moco/test/tf/Const_001/test.pbtxt diff --git a/contrib/moco/test/tf/Const_000/test.info b/contrib/moco/test/tf/Const_000/test.info new file mode 100644 index 0000000..43b4f06 --- /dev/null +++ b/contrib/moco/test/tf/Const_000/test.info @@ -0,0 +1 @@ +output, const/float:0, TF_FLOAT, [2, 3] diff --git a/contrib/moco/test/tf/Const_000/test.pbtxt b/contrib/moco/test/tf/Const_000/test.pbtxt new file mode 100644 index 0000000..b91ade2 --- /dev/null +++ b/contrib/moco/test/tf/Const_000/test.pbtxt @@ -0,0 +1,32 @@ +node { + name: "const/float" + op: "Const" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { + size: 2 + } + dim { + size: 3 + } + } + float_val: 1.1 + float_val: 2.2 + float_val: 3.3 + float_val: 4.4 + float_val: 5.5 + float_val: 6.6 + } + } + } +} diff --git a/contrib/moco/test/tf/Const_001/test.info b/contrib/moco/test/tf/Const_001/test.info new file mode 100644 index 0000000..445b34b --- /dev/null +++ b/contrib/moco/test/tf/Const_001/test.info @@ -0,0 +1 @@ +output, const/int32:0, TF_INT32, [2, 3] diff --git a/contrib/moco/test/tf/Const_001/test.pbtxt b/contrib/moco/test/tf/Const_001/test.pbtxt new file mode 100644 index 0000000..bec7dfb --- /dev/null +++ b/contrib/moco/test/tf/Const_001/test.pbtxt @@ -0,0 +1,32 @@ +node { + name: "const/int32" + op: "Const" + attr { + key: "dtype" + value { + type: DT_INT32 + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_INT32 + tensor_shape { + dim { + size: 2 + } + dim { + size: 3 + } + } + int_val: 1 + int_val: 2 + int_val: 3 + int_val: 4 + int_val: 5 + int_val: 6 + } + } + } +} -- 2.7.4