Add tflite_benchmark_model sources (#2231)
author이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Thu, 9 Aug 2018 06:17:20 +0000 (15:17 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 9 Aug 2018 06:17:20 +0000 (15:17 +0900)
commit5da80f622cf696e0f8daac1904243437bf962719
tree0e55b27442c8fb60e4875ab2602d6ceabc4106a4
parentd59477759668dcfe69bc288d404fad8ff21fb889
Add tflite_benchmark_model sources (#2231)

Sources are copied from tensorflow/contrib/lite/tools/benchmark from
v1.9.0-rc2. Then, I modified the followings:

- Namespace is changed
  (tflite -> nnfw)
- Header guard is also changed
- Header include path is adjusted
  (include tensorflow/contrib/lite/profiling/* -> include *)
- Add proper qualification to fix build error (string -> std::string)
- Prepend license for sources under tflite_benchmark_model

In addition, tools/CMakeLists.txt is modified to build tflite_benchmark_model
when `BUILD_TFLITE_BENCHMARK_MODEL` is defined.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
13 files changed:
tools/CMakeLists.txt
tools/tflite_benchmark_model/CMakeLists.txt [new file with mode: 0644]
tools/tflite_benchmark_model/README.md [new file with mode: 0644]
tools/tflite_benchmark_model/benchmark_main.cc [new file with mode: 0644]
tools/tflite_benchmark_model/benchmark_model.cc [new file with mode: 0644]
tools/tflite_benchmark_model/benchmark_model.h [new file with mode: 0644]
tools/tflite_benchmark_model/benchmark_params.cc [new file with mode: 0644]
tools/tflite_benchmark_model/benchmark_params.h [new file with mode: 0644]
tools/tflite_benchmark_model/benchmark_tflite_model.cc [new file with mode: 0644]
tools/tflite_benchmark_model/benchmark_tflite_model.h [new file with mode: 0644]
tools/tflite_benchmark_model/command_line_flags.cc [new file with mode: 0644]
tools/tflite_benchmark_model/command_line_flags.h [new file with mode: 0644]
tools/tflite_benchmark_model/logging.h [new file with mode: 0644]