Tensorflow-Lite Micro Model

This package allows for executing a quantized .tflite model file in the Tensorflow-Lite Micro interpreter.

Example Usage

Example usage of this package is as follows:

from mltk.core.tflite_micro import TfliteMicro

# Profile the model in the TFLM interpreter
profiling_results = TfliteMicro.profile_model(tflite_path)

print(profiling_results)

See the TfliteMicroModel API examples for more examples.

API Reference

mltk.core.tflite_micro.TfliteMicroModel

This class wrappers the TF-Lite Micro interpreter loaded with a .tflite model

mltk.core.tflite_micro.TfliteMicroModelDetails

TF-Lite Micro Model Details

mltk.core.tflite_micro.TfliteMicro

This class wraps the TF-Lite Micro C++ library

mltk.core.tflite_micro.TfliteMicroProfiledLayerResult

Result of profiling a specifc model layer

mltk.core.tflite_micro.TfliteMicroLayerError

mltk.core.tflite_micro.tflite_micro_accelerator.TfliteMicroAccelerator

TF-Lite Micro Accelerator