Introduce BUILD_TFLITE_BENCHMARK_MODEL option (#2226)
author이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Thu, 9 Aug 2018 01:21:39 +0000 (10:21 +0900)
committer박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 9 Aug 2018 01:21:39 +0000 (10:21 +0900)
commit640f05feba2c4b54e55c205bce646bfa323bb1e5
treee0719555ab61e4bba83aaeb0d091611fdcd5a724
parentd1fc4074bc2f8af76088fe3518e57bda34b152bd
Introduce BUILD_TFLITE_BENCHMARK_MODEL option (#2226)

Related Issue: #1760, #1696

`tflite_benchmark_model` is a tool for profiling a given model.
The tools is under development in tensorflow upstream.

It was not shipped in v1.9.0 release.
Thus I made `tflite_benchmark_model` work for tflite interpreter
by chery-picking needed patches. (#2212)

This patch is a part of full changes. It only introduces build option.

By default, tflite_benchmark_model will not be built.

To build tflite_benchmark_model tool, use

```
$ OPTIONS='-DBUILD_PURE_ARM_COMPUTE=ON -DBUILD_TFLITE_BENCHMARK_MODEL=ON' \
CROSS_BUILD=1 TARGET_ARCH=armv7l make all install
```

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
cmake/CfgOptionFlags.cmake
externals/CMakeLists.txt