tree: 6e1bbdad732d3885e5546171564b7e7cc908bcea [path history] [tgz]
  1. BUILD
  2. generate_circular_buffer_flexbuffers_data.cc
  3. generate_detection_postprocess_flexbuffers_data.cc
  4. README.md
tensorflow/lite/micro/kernels/test_data_generation/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