From 307abb30ded144cbce429aec1b07b1654d5bcaaf Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 16 Jul 2019 09:06:43 -0700 Subject: [PATCH] Add note to benchmark tool on NNAPI restrictions on /data/local/tmp/ on some Android P devices. PiperOrigin-RevId: 258378187 --- tensorflow/lite/tools/benchmark/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tensorflow/lite/tools/benchmark/README.md b/tensorflow/lite/tools/benchmark/README.md index d5c89bd266b..8e77a22f6b1 100644 --- a/tensorflow/lite/tools/benchmark/README.md +++ b/tensorflow/lite/tools/benchmark/README.md @@ -36,12 +36,16 @@ and the following optional parameters: mean use no delay. * `use_nnapi`: `bool` (default=false) \ Whether to use [Android NNAPI](https://developer.android.com/ndk/guides/neuralnetworks/). - This API is available on recent Android devices. + This API is available on recent Android devices. Note that some Android P + devices will fail to use NNAPI for models in `/data/local/tmp/` and this + benchmark tool will not correctly use NNAPI. * `use_legacy_nnapi`: `bool` (default=false) \ Whether to use the legacy [Android NNAPI](https://developer.android.com/ndk/guides/neuralnetworks/) TFLite path, which requires the graph to be fully compatible with NNAPI. - This is available on recent Android devices. + This is available on recent Android devices. Note that some Android P + devices will fail to use NNAPI for models in `/data/local/tmp/` and this + benchmark tool will not correctly use NNAPI. * `use_gpu`: `bool` (default=false) \ Whether to use the [GPU accelerator delegate](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/delegates/gpu). This option is currently only available on Android devices. -- GitLab