tflite-micro/tensorflow/lite/micro/kernels/test_data_generation
Ryan Kuester 74e995231e
refactor: fix signed vs. unsigned comparison compiler warnings (#2064)
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
2023-06-16 18:29:27 +00:00
..
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