return tflite.StridedSliceOptions.StridedSliceOptionsEnd(new_builder)
- # ExpOptions: not supported
+ # ExpOptions
+ import tflite.ExpOptions
+ if builtin_option_type == tflite.BuiltinOptions.BuiltinOptions().ExpOptions:
+
+ exp_option = tflite.ExpOptions.ExpOptions()
+ exp_option.Init(selected_builtin_option.Bytes, selected_builtin_option.Pos)
+
+ tflite.ExpOptions.ExpOptionsStart(new_builder)
+ return tflite.ExpOptions.ExpOptionsEnd(new_builder)
# TopKV2Options
import tflite.TopKV2Options
# MaximumMinimumOptions: not supported
# ArgMaxOptions: not supported
# LessOptions: not supported
- # NegOptions: not supported
+
+ # NegOptions
+ import tflite.NegOptions
+ if builtin_option_type == tflite.BuiltinOptions.BuiltinOptions().NegOptions:
+
+ neg_option = tflite.NegOptions.NegOptions()
+ neg_option.Init(selected_builtin_option.Bytes, selected_builtin_option.Pos)
+
+ tflite.NegOptions.NegOptionsStart(new_builder)
+ return tflite.NegOptions.NegOptionsEnd(new_builder)
+
# PadV2Options: not supported
# GreaterOptions: not supported
# GreaterEqualOptions: not supported