[model_parser] Generalize `SetBuiltinOpcodeStr` (#2073)
author이한종/동작제어Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Thu, 26 Jul 2018 04:57:21 +0000 (13:57 +0900)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 26 Jul 2018 04:57:21 +0000 (13:57 +0900)
commit4b784f45cb17eaa4724cefa573a7db7f4e181a90
tree0fdc04d4ef13f7bc568b946a61d9e2bb78e822d1
parenta220ae41796cde007b2b3c79a53956fca05956c5
[model_parser] Generalize `SetBuiltinOpcodeStr` (#2073)

Generalize the function `SetBuiltinOpcodeStr` so it can be used from
other enum classes as well. Plus, introduce `EnumStrMaps` which is a
collection of these kind of map(enum to string conversion).

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
tools/tflitefile_tool/operator_parser.py
tools/tflitefile_tool/operator_wrapping.py