View source on GitHub |
Converts the input Keras model to TFLite format.
mediapipe_model_maker.model_util.convert_to_tflite_from_file(
saved_model_file: str,
quantization_config: Optional[mediapipe_model_maker.quantization.QuantizationConfig
] = None,
supported_ops: Tuple[tf.lite.OpsSet, ...] = (tf.lite.OpsSet.TFLITE_BUILTINS,),
preprocess: Optional[Callable[..., Any]] = None,
allow_custom_ops: bool = False
) -> bytearray
Returns | |
---|---|
bytearray of TFLite model |