From: 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Tue, 15 Jan 2019 23:55:08 +0000 (+0900) Subject: [enco/tflite] Add Regression 0003 testcase (#2854) X-Git-Tag: nncc_backup~957 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d0a5a1550cfc1c0f8711440ecaeebb21927d4e5;p=platform%2Fcore%2Fml%2Fnnfw.git [enco/tflite] Add Regression 0003 testcase (#2854) This commit introduces Regression 0003 testcase whose inputs are all constant. Signed-off-by: Jonghyun Park --- diff --git a/contrib/enco/test/tflite/Regression_0003/INFERENCE b/contrib/enco/test/tflite/Regression_0003/INFERENCE new file mode 100644 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 index 0000000..693c455 --- /dev/null +++ b/contrib/enco/test/tflite/Regression_0003/test.recipe @@ -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"