mlonmcu.session package
Subpackages
- mlonmcu.session.postprocess package
- Submodules
- mlonmcu.session.postprocess.postprocess module
- mlonmcu.session.postprocess.postprocesses module
AnalyseCoreVCountsPostprocess
AnalyseDumpPostprocess
AnalyseInstructionsPostprocess
AnalyseInstructionsPostprocess.DEFAULTS
AnalyseInstructionsPostprocess.corev
AnalyseInstructionsPostprocess.groups
AnalyseInstructionsPostprocess.post_run()
AnalyseInstructionsPostprocess.seq_depth
AnalyseInstructionsPostprocess.sequences
AnalyseInstructionsPostprocess.to_df
AnalyseInstructionsPostprocess.to_file
AnalyseInstructionsPostprocess.top
Artifact2ColumnPostprocess
Bytes2kBPostprocess
CompareRowsPostprocess
Config2ColumnsPostprocess
Features2ColumnsPostprocess
FilterColumnsPostprocess
MyPostprocess
PassConfig2ColumnsPostprocess
RenameColumnsPostprocess
VisualizePostprocess
match_rows()
- Module contents
Submodules
mlonmcu.session.run module
Definition of a MLonMCU Run which represents a single benchmark instance for a given set of options.
- class mlonmcu.session.run.Run(idx=None, model=None, framework=None, frontends=None, backend=None, target=None, platforms=None, features=None, config=None, postprocesses=None, archived=False, session=None, comment='')[source]
Bases:
object
A run is single model/backend/framework/target combination with a given set of features and configs.
- DEFAULTS = {'export_optional': False, 'stage_subdirs': False, 'target_optimized_layouts': False, 'target_optimized_schedules': False, 'target_to_backend': True, 'tune_enabled': False}
- FEATURES = {'autotune', 'target_optimized'}
- OPTIONAL = {}
- REQUIRED = {}
- add_backend_by_name(backend_name, context=None)[source]
Helper function to initialize and configure a backend by its name.
- add_feature_by_name(feature_name, append=True, context=None)[source]
Helper function to initialize and configure a feature by its name.
- add_features_by_name(feature_names, append=False, context=None)[source]
Helper function to initialize and configure features by their names.
- add_frontend_by_name(frontend_name, context=None)[source]
Helper function to initialize and configure a frontend by its name.
- add_frontends_by_name(frontend_names, context=None)[source]
Helper function to initialize and configure frontends by their names.
- add_model_by_name(model_name, context=None)[source]
Helper function to initialize and configure a model by its name.
- add_platform_by_name(platform_name, context=None)[source]
Helper function to initialize and configure a platform by its name.
- add_platforms_by_name(platform_names, context=None)[source]
Helper function to initialize and configure platforms by their names.
- add_postprocess_by_name(postprocess_name, append=True, context=None)[source]
Helper function to initialize and configure a postprocesses by its name.
- add_postprocesses_by_name(postprocess_names, append=False, context=None)[source]
Helper function to initialize and configure postprocesses by their names.
- add_target_by_name(target_name, context=None)[source]
Helper function to initialize and configure a target by its name.
- property artifacts
- property build_platform
Get platform for build stage.
- property compile_platform
Get platform for compile stage.
- property export_optional
Get export_optional property.
- property frontend
- get_all_configs(omit_paths=False, omit_defaults=False, omit_globals=False)[source]
Return dict with component-specific and global configuration for this run.
- init_component(component_cls, context=None)[source]
Helper function to create and configure a MLonMCU component instance for this run.
- property last_stage
Determines the next not yet completed stage. Returns RunStage.DONE if already completed.
- property next_stage
Determines the next not yet completed stage. Returns RunStage.DONE if already completed.
- property prefix
Get prefix property.
- property stage_subdirs
- property target_optimized_layouts
Get target_optimized_layouts property.
- property target_optimized_schedules
Get target_optimized_schedules property.
- property target_platform
Get platform for run stage.
- property target_to_backend
Get target_to_backend property.
- property tune_enabled
Get tune_enabled property.
- property tune_platform
Get platform for tune stage.
mlonmcu.session.session module
Definition of a MLonMCU Run which represents a set of benchmarks in a session.
- class mlonmcu.session.session.Session(label='', idx=None, archived=False, dir=None, config=None)[source]
Bases:
object
A session which wraps around multiple runs in a context.
- DEFAULTS = {'report_fmt': 'csv'}
- property active
Get active property.
- property failing
Get failng property.
- property prefix
get prefix property.
- process_runs(until=RunStage.DONE, per_stage=False, print_report=False, num_workers=1, progress=False, export=False, context=None)[source]
Process a runs in this session until a given stage.
- property report_fmt
get report_fmt property.
- property runs_dir