diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2021-06-10 15:47:29 +0100 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2021-06-11 12:50:54 +0000 |
commit | 6d666e41f55ee9cc44933310ca83771710f80b55 (patch) | |
tree | bf02dee38c79b15989a130b21f7785a104d7099f /docs/FAQ.md | |
parent | 1625efc870f1a8b7c6e6382277ddbb245f91a294 (diff) | |
download | armnn-6d666e41f55ee9cc44933310ca83771710f80b55.tar.gz |
IVGCVSW-6083 Add an advisory FAQ entry about TF lite benchmarking tool.
* Minor errors in parameter usage result in segmentation faults. Add an
FAQ entry highlighting this and giving a tested example.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I6dd1812329a500276931f2c1fd37fbc14c507f36
Diffstat (limited to 'docs/FAQ.md')
-rw-r--r-- | docs/FAQ.md | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/FAQ.md b/docs/FAQ.md index 4070541d52..f79e2d19f8 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -45,4 +45,18 @@ This problem has previously been reported to the boostorg GitHub project. The so ArmNN fails to build on Ubuntu 20.04 --------------------------------------------------------- -The compiler version update on Ubuntu 20.04 resulted in build errors in Flat buffers 1.10.0. Update to Flatbuffers 1.12.0 to resolve this problem. In addition when building flatbuffers specify -fPIC CXX flag to allow the libraries to be used in our shared objects. Without this the the ArmNN build can fail with libflatbuffers.a(util.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN11flatbuffers9DirExistsEPKc' can not be used when making a shared object; recompile with -fPIC
\ No newline at end of file +The compiler version update on Ubuntu 20.04 resulted in build errors in Flat buffers 1.10.0. Update to Flatbuffers 1.12.0 to resolve this problem. In addition when building flatbuffers specify -fPIC CXX flag to allow the libraries to be used in our shared objects. Without this the the ArmNN build can fail with libflatbuffers.a(util.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN11flatbuffers9DirExistsEPKc' can not be used when making a shared object; recompile with -fPIC + +Tensorflow Lite benchmarking tool fails with segmentation fault when using the Arm NN delegate. +--------------------------------------------------------- +There are occaisional problems using native build versions of the Tensorflow Lite benchmarking tool. It can be sensitive to errors in command line parameter usage. A simple misspelling of a delegate name will result in a bus error. Here is a sample command line usage that is known to work for the Arm NN delegate. + +This example is for: + +* Execution on Android using a native binary downloaded from [Tensorflow Lite performance measurment](https://www.tensorflow.org/lite/performance/measurement#native_benchmark_binary). +* Uses a TF Lite model that has been downloaded from the ML-zoo. In this case [MobileNet v2 1.0 224 UINT8](https://github.com/ARM-software/ML-zoo/tree/master/models/image_classification/mobilenet_v2_1.0_224/tflite_uint8). +* Arm NN and its dependent libraries are in the current directory, /data/local/tmp. + +~~~ +LD_LIBRARY_PATH=/vendor/lib64/egl:/vendor/lib/egl/:. ./android_aarch64_benchmark_model --num_threads=4 --graph=/data/local/tmp/mobilenet_v2_1.0_224_quantized_1_default_1.tflite --external_delegate_path="libarmnnDelegate.so" --external_delegate_options="backends:GpuAcc" +~~~ |