mlonmcu.flow package

Subpackages

Submodules

mlonmcu.flow.backend module

class mlonmcu.flow.backend.Backend(framework='', features=None, config=None)[source]

Bases: ABC

DEFAULTS = {}
FEATURES = {}
OPTIONAL = {}
REQUIRED = {}
add_platform_config(platform, config)[source]
add_platform_defs(platform, defs)[source]
export_artifacts(path)[source]
abstract generate() Tuple[dict, dict][source]
generate_artifacts() List[Artifact][source]
get_platform_config(platform)[source]
get_platform_defs(platform)[source]
property has_tuner
abstract load_model(model, input_shapes=None, output_shapes=None, input_types=None, output_types=None)[source]
name = None
property needs_target
process_features(features)[source]
set_tuning_records(filepath)[source]
supports_model(model)[source]
mlonmcu.flow.backend.get_parser(backend_name, features, required, defaults)[source]
mlonmcu.flow.backend.init_backend_features(names, config)[source]
mlonmcu.flow.backend.main(backend, args=None)[source]

mlonmcu.flow.framework module

class mlonmcu.flow.framework.Framework(features=None, config=None, backends={})[source]

Bases: ABC

DEFAULTS = {}
FEATURES = {}
OPTIONAL = {}
REQUIRED = {'tf.src_dir'}
add_platform_config(platform, config)[source]
add_platform_defs(platform, defs)[source]
get_platform_config(platform)[source]
get_platform_defs(platform)[source]
name = None
process_features(features)[source]
registry = {'tflm': <class 'mlonmcu.flow.tflm.framework.TFLMFramework'>, 'tvm': <class 'mlonmcu.flow.tvm.framework.TVMFramework'>}
remove_config_prefix(config)[source]

Module contents

Flow module for frameworks and backend.

mlonmcu.flow.get_available_backend_names()[source]

Return all available backend names.