Add flash support and updated benchmark.py and pyproject.toml
Context
- Edit the 'flash' directory to handle firmware flashing and UART output capture.
- Edit benchmark.py , add comput_output.
-Updated pyproject.toml to include pyocd and pyserial as dependencies for flashing support and add json fils in pip package
Modified files
benchmark.pyadd flash folderpyproject.toml
Detailed major modifications
With these modifications, we now have a functional benchmark.py with a working compute_output function: running benchmark.py → retrieving inputs → compilation → creation of the benchmark_export_arm folder → retrieving the .elf file → flashing the board → collecting data → processing data → comparison.
I ran the test for the Relu operator.
TODO
-
Add the measure_inference_time in the benchmark.py
-
Test with another operator
-
NOT DONE -
DONE -
TO DO