tum-ei-eda / mlonmcu

Tool for the deployment and analysis of TinyML applications on TFLM and MicroTVM backends
Apache License 2.0
28 stars 12 forks source link

Add proper extension/plugin mechanism #72

Closed PhilippvK closed 1 year ago

PhilippvK commented 1 year ago

Already in the early days of MLonMCU the ultimate goal was to provide an extension mechanism. Unfortunately in the current implementation this is pretty much non-existant. We have a registration mechanism for at least some components (platforms or features in example) but many of the components are still hardcoded. In addition external script can only be integrated in custom scripts using the Python API.

To enable the usage of "plugins" for the command line interface as well I propose the following:

What still has to be defined is what functions should be inside such extensions/ext.py file to be called by the MLonMCU codebase.

PhilippvK commented 1 year ago

Done!

PhilippvK commented 1 year ago

Documentation will be added later