[enco/tflite] Add Regression 0003 testcase (#2854)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 15 Jan 2019 23:55:08 +0000 (08:55 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 15 Jan 2019 23:55:08 +0000 (08:55 +0900)
This commit introduces Regression 0003 testcase whose inputs are all
constant.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/test/tflite/Regression_0003/INFERENCE [new file with mode: 0644]
contrib/enco/test/tflite/Regression_0003/test.recipe [new file with mode: 0644]

diff --git a/contrib/enco/test/tflite/Regression_0003/INFERENCE b/contrib/enco/test/tflite/Regression_0003/INFERENCE
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/contrib/enco/test/tflite/Regression_0003/test.recipe b/contrib/enco/test/tflite/Regression_0003/test.recipe
new file mode 100644 (file)
index 0000000..693c455
--- /dev/null
@@ -0,0 +1,33 @@
+# Compilation SHOULD NOT fail even if all the inputs are constant
+operand {
+  name: "ifm"
+  type: FLOAT32
+  shape { dim: 1 dim: 3 dim: 3 dim: 2 }
+  filler { tag: "constant" arg: "0.1" }
+}
+operand {
+  name: "ker"
+  type: FLOAT32
+  shape { dim: 1 dim: 1 dim: 1 dim: 2 }
+  filler { tag: "constant" arg: "0.2" }
+}
+operand {
+  name: "bias"
+  type: FLOAT32
+  shape { dim: 1 }
+  filler { tag: "constant" arg: "0.3" }
+}
+operand {
+  name: "ofm"
+  type: FLOAT32
+  shape { dim: 1 dim: 3 dim: 3 dim: 1 }
+}
+operation {
+  type: "Conv2D"
+  conv2d_options { padding: VALID }
+  input: "ifm"
+  input: "ker"
+  input: "bias"
+  output: "ofm"
+}
+output: "ofm"