Building the CMSIS-NN Python extension on all platforms (Mac, Linux, Windows ...) with different compilers is not easy.
But, it looks like, the only use of this extension in the executorch Cortex-M backend is to have access to some constants:
executorch\backends\cortex_m\target_config.py
There are some use of the API but it looks like it is for tests:
backends\cortex_m\test\misc\test_cmsis_pybind.py
So perhaps it would be simpler to have two cmsis-nn Python extensions:
- One pure Python based that expose the constant needed by Cortex-M backend
- Another one that gives access to the functions for testing purposes ?
It would simplify the installation for people who only want to use executorch.
Building the CMSIS-NN Python extension on all platforms (Mac, Linux, Windows ...) with different compilers is not easy.
But, it looks like, the only use of this extension in the executorch Cortex-M backend is to have access to some constants:
executorch\backends\cortex_m\target_config.pyThere are some use of the API but it looks like it is for tests:
backends\cortex_m\test\misc\test_cmsis_pybind.pySo perhaps it would be simpler to have two cmsis-nn Python extensions:
It would simplify the installation for people who only want to use executorch.