Add some repro notes for benchmark failures. (#7933)
diff --git a/benchmarks/README.md b/benchmarks/README.md index 5ac8fd1..55f5d63 100644 --- a/benchmarks/README.md +++ b/benchmarks/README.md
@@ -60,3 +60,32 @@ ### Other project metrics TODO(#6161): Collect metrics for miscellaneous IREE system states + +## Developer notes + +These are ad-hoc notes added for developers to help triage errors. + +### Repro of TFLite model errors + +These steps help reproduce the failures in TFLite models. + +1. Install `iree-import-tflite`. + ``` + $ python -m pip install iree-tools-tflite-snapshot -f https://github.com/google/iree/releases + ``` + +2. Confirm the binary `iree-import-tflite` is in your path by running + ``` + $ iree-import-tflite --help + ``` + +3. Download the TFLite flatbuffer for the failing benchmarks. The +location can be found from [this CMakeLists.txt file](./TFLite/CMakeLists.txt) + +4. The input TOSA model can be generated by running + ``` + $ iree-import-tflite <tflite file> -o <tosa output file> + ``` + +5. The exact flags used to compile and run the benchmarks can be +found in [this CMakeLists.txt file](./TFLite/CMakeLists.txt)