[exo-tflite] Use throw instead of assert (#7006)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 29 Aug 2019 03:48:56 +0000 (12:48 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 29 Aug 2019 03:48:56 +0000 (12:48 +0900)
commitba9fb96783ff405085dc1378eede1a8658bd296e
tree738056a1ff06a92809b764fe41281d3a93279ef2
parent2a710aa9c7c9a4f0e0151bb4383f618897e05169
[exo-tflite] Use throw instead of assert (#7006)

The current implementation of translateLocoTypeToTFLite may return an
invalid value if the code is built with release configuration.

This commit replaces assert with throw to prevent undefined behavior.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/exo-tflite/src/TypeInference.cpp