[enco] Not apply constant folding when instruction has output bag (#2897)
author남궁석/On-Device Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Wed, 23 Jan 2019 01:55:09 +0000 (10:55 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 23 Jan 2019 01:55:09 +0000 (10:55 +0900)
commitafe9d0b7851ae606eb058047146e3275d21154c9
tree937fa89df8943b80ba3bcb0de26ec71be2a5da3c
parent4593a7296b99ff7ca6ece3a22828aff0bc7800b3
[enco] Not apply constant folding when instruction has output bag (#2897)

* [enco] Not apply constant folding when instruction has output bag

Until now, constant folding was even applied to the instructions which have output bag.
If then, constant folding tries to update network output buffer but it is not impossible.
Furthermore, the total result would be abnormal.
This commit will fix it by not applying constant folding when instruction has output bag and add related testcases.

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* add TODO comment

* rename testcase
contrib/enco/core/src/Transforms/ConstantFolding.cpp
contrib/enco/test/tflite/Regression_0004/INFERENCE [new file with mode: 0644]
contrib/enco/test/tflite/Regression_0004/test.recipe [new file with mode: 0644]