mirror of
https://github.com/vee1e/tflite-micro.git
synced 2026-09-02 10:17:54 +00:00
Fix various compiler warnings about signed vs. unsigned comparisons, in preparation for enabling -Werror. Fix by making the most straightforward, local changes. Improving the test framework, changing types in data structures, and or adding some utility functions might yield prettier code. BUG=part of #2057 |
||
|---|---|---|
| .. | ||
| BUILD | ||
| generate_circular_buffer_flexbuffers_data.cc | ||
| generate_detection_postprocess_flexbuffers_data.cc | ||
| README.md | ||
Background
As a Custom operator, detection_postprocess is using Flexbuffers library. In the unit test there is a need to use flexbuffers::Builder since the operator itself use flexbuffers::Map. However flexbuffers::Builder can not be used for most targets (basically only on X86), since it is using std::vector and std::map. Therefore the flexbuffers::Builder data is pregenerated on X86.
How to generate new data:
g++ -I ../../../micro/tools/make/downloads/flatbuffers/include generate_detection_postprocess_flexbuffers_data.cc && ./a.out > ../detection_postprocess_flexbuffers_generated_data.cc