mlonmcu.flow.tflm package
Subpackages
Submodules
mlonmcu.flow.tflm.framework module
Definitions for TFLMFramework.
- class mlonmcu.flow.tflm.framework.TFLMFramework(features=None, config=None)[source]
Bases:
Framework
TFLM Framework specialization.
- DEFAULTS = {'optimized_kernel': None, 'optimized_kernel_inc_dirs': [], 'optimized_kernel_libs': []}
- FEATURES = {'cmsisnn', 'muriscvnn'}
- REQUIRED = {'tf.src_dir'}
- backends = {'tflmc': <class 'mlonmcu.flow.tflm.backend.tflmc.TFLMCBackend'>, 'tflmi': <class 'mlonmcu.flow.tflm.backend.tflmi.TFLMIBackend'>}
- name = 'tflm'
- property optimized_kernel
- property optimized_kernel_inc_dirs
- property optimized_kernel_libs
- property tf_src
Module contents
TFLite framework module.
- class mlonmcu.flow.tflm.TFLMBackend(features=None, config=None)[source]
Bases:
Backend
- DEFAULTS = {}
- FEATURES = {}
- REQUIRED = {}
- load_model(model, input_shapes=None, output_shapes=None, input_types=None, output_types=None)[source]
- name = None
- registry = {'tflmc': <class 'mlonmcu.flow.tflm.backend.tflmc.TFLMCBackend'>, 'tflmi': <class 'mlonmcu.flow.tflm.backend.tflmi.TFLMIBackend'>}
- class mlonmcu.flow.tflm.TFLMCBackend(features=None, config=None)[source]
Bases:
TFLMBackend
- DEFAULTS = {'custom_ops': [], 'debug_arena': False, 'print_outputs': False, 'registrations': {}}
- FEATURES = {'debug_arena'}
- REQUIRED = {'tflmc.exe'}
- name = 'tflmc'
- property print_outputs
- class mlonmcu.flow.tflm.TFLMIBackend(features=None, config=None)[source]
Bases:
TFLMBackend
- DEFAULTS = {'arena_size': 1048576, 'custom_ops': [], 'debug_arena': False, 'legacy': False, 'ops': [], 'ops_resolver': 'mutable', 'registrations': {}, 'reporter': False}
- FEATURES = {'debug_arena'}
- property arena_size
- property custom_ops
- property debug_arena
- property legacy
- name = 'tflmi'
- property ops
- property ops_resolver
- property registrations
- property reporter