tum-ei-eda / mlonmcu

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

Extend Platform API: BuildPlatform #39

Closed PhilippvK closed 1 year ago

PhilippvK commented 2 years ago

A platform API was recently added to MLonMCU and it's idea can be described as follows:

This Issue proposes to add another type of platforms: BuildPlatform This would be a platform which wraps around a backend and should be therefore able to run code generation. A realistic example of how this might be use would be a microtvm platform as TVM provides a Project API with templates to support large number of target devices. The full flow from building a model over compiling the running the model (using an RPC server) can be handled using the tvmc micro tool.

I am actually not sure if this would be a good idea at some point in time, however it always make sense to think about ways to generalize existing APIs. For this reason this should mainly be documenting the concept which might get picked up at some point.