[enco/tfl] Introduce Regression_0002 testcase (#2492)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 5 Dec 2018 00:51:07 +0000 (09:51 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 5 Dec 2018 00:51:07 +0000 (09:51 +0900)
This commit introduces Regression_0002 case which tests the
correctness of dead code elimination optimizations.

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

diff --git a/contrib/enco/test/tflite/Regression_0002/INFERENCE b/contrib/enco/test/tflite/Regression_0002/INFERENCE
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/contrib/enco/test/tflite/Regression_0002/test.recipe b/contrib/enco/test/tflite/Regression_0002/test.recipe
new file mode 100644 (file)
index 0000000..904a1c4
--- /dev/null
@@ -0,0 +1,45 @@
+# Compilation SHOULD NOT fail even when there is no effective calcualtion
+operand {
+  name: "ifm"
+  type: FLOAT32
+  shape { dim: 1 dim: 8 dim: 8 dim: 2 }
+}
+operand {
+  name: "ker"
+  type: FLOAT32
+  shape { dim: 1 dim: 1 dim: 1 dim: 2 }
+  filler {
+    tag: "gaussian"
+    arg: "0.0"
+    arg: "1.0"
+  }
+}
+operand {
+  name: "bias"
+  type: FLOAT32
+  shape { dim: 1 }
+  filler {
+    tag: "gaussian"
+    arg: "0.0"
+    arg: "0.1"
+  }
+}
+operand {
+  name: "ofm"
+  type: FLOAT32
+  shape { dim: 1 dim: 7 dim: 7 dim: 1 }
+}
+operation {
+  type: "Conv2D"
+  conv2d_options {
+    padding: VALID
+    stride_w: 1
+    stride_h: 1
+    activation: NONE
+  }
+  input: "ifm"
+  input: "ker"
+  input: "bias"
+  output: "ofm"
+}
+input: "ifm"