[tflitefile_tool] select_operator will show unsupported op info (#3912)
authorSanggyu Lee <takepencil@naver.com>
Fri, 21 Aug 2020 03:42:17 +0000 (12:42 +0900)
committerGitHub <noreply@github.com>
Fri, 21 Aug 2020 03:42:17 +0000 (12:42 +0900)
Currently select_operator does not show any information about
what operator is not supported.
It will print BuiltinOptions index to find out easily what operator is
not supported.

ONE-DCO-1.0-Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>

tools/tflitefile_tool/select_operator.py

index cd19e76..a74fae5 100755 (executable)
@@ -909,7 +909,8 @@ def GenerateBuiltinOption(new_builder, selected_builtin_option, builtin_option_t
         return tflite.WhileOptions.WhileOptionsEnd(new_builder)
 
     # Cannot handle builtin option type yet
-    print("Cannot handle this option yet")
+    print("Cannot handle BuiltinOptions {} yet. See BuiltinOptions.py for op name".format(
+        builtin_option_type))
     exit(1)