mlonmcu.feature package
Submodules
mlonmcu.feature.feature module
MLonMCU Features API
- class mlonmcu.feature.feature.BackendFeature(name, features=None, config=None)[source]
Bases:
FeatureBase
Backend related feature
- feature_type = 4
- class mlonmcu.feature.feature.Feature(name, features=None, config=None)[source]
Bases:
FeatureBase
Feature of unknown type
- feature_type = 0
- class mlonmcu.feature.feature.FeatureBase(name, features=None, config=None)[source]
Bases:
ABC
Feature base class
- DEFAULTS = {'enabled': True}
- OPTIONAL = {}
- REQUIRED = {}
- property enabled
- feature_type = None
- scope = None
- class mlonmcu.feature.feature.FrameworkFeature(name, features=None, config=None)[source]
Bases:
FeatureBase
Framework related feature
- feature_type = 3
- class mlonmcu.feature.feature.FrontendFeature(name, features=None, config=None)[source]
Bases:
FeatureBase
Frontend related feature
- feature_type = 2
- class mlonmcu.feature.feature.PlatformFeature(name, features=None, config=None)[source]
Bases:
FeatureBase
Platform/Compile related feature
- feature_type = 6
- class mlonmcu.feature.feature.RunFeature(name, features=None, config=None)[source]
Bases:
FeatureBase
Run related feature
- feature_type = 7
- class mlonmcu.feature.feature.SetupFeature(name, features=None, config=None)[source]
Bases:
FeatureBase
Setup/Cache related feature
- feature_type = 1
- class mlonmcu.feature.feature.TargetFeature(name, features=None, config=None)[source]
Bases:
FeatureBase
Target related feature
- feature_type = 5
mlonmcu.feature.features module
Definition of MLonMCU features and the feature registry.
- class mlonmcu.feature.features.HpmCounter(name, features=None, config=None)[source]
Bases:
TargetFeature
,PlatformFeature
Use RISC-V Performance Counters
- DEFAULTS = {'counter_names': [], 'enabled': True, 'enabled_counters': [], 'num_counters': 32, 'supported_counters': 1}
- property counter_names
- property enabled_counters
- property num_counters
- property supported_counters
- class mlonmcu.feature.features.TVMTuneBase(name, features=None, config=None)[source]
Bases:
PlatformFeature
- DEFAULTS = {'append': None, 'early_stopping': None, 'enabled': True, 'max_parallel': None, 'num_workers': None, 'results_file': None, 'tasks': None, 'timeout': None, 'trials': None, 'trials_single': None, 'use_rpc': None, 'visualize': None, 'visualize_file': None, 'visualize_live': None}
- property append
- property early_stopping
- property max_parallel
- property num_workers
- property results_file
- property tasks
- property timeout
- property trials
- property trials_single
- property use_rpc
- property visualize
- property visualize_file
- property visualize_live
- mlonmcu.feature.features.get_available_feature_names(feature_type=None)[source]
Utility for getting feature names.