From c0e2a301b745a455876b43d5e9776a851b9d47f8 Mon Sep 17 00:00:00 2001 From: Karim Nosir Date: Mon, 16 Dec 2019 15:01:46 -0800 Subject: [PATCH] Update documentation of hexagon delegate on how to build AAR PiperOrigin-RevId: 285858274 Change-Id: I96823afe6d72cfc96aa838f4e2ba3a3d55d2d238 --- tensorflow/lite/g3doc/performance/hexagon_delegate.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tensorflow/lite/g3doc/performance/hexagon_delegate.md b/tensorflow/lite/g3doc/performance/hexagon_delegate.md index 0e5c82ab680..e0c841facb3 100644 --- a/tensorflow/lite/g3doc/performance/hexagon_delegate.md +++ b/tensorflow/lite/g3doc/performance/hexagon_delegate.md @@ -62,6 +62,13 @@ public class HexagonDelegate implements Delegate, Closeable { 1. Add the ‘tensorflow-lite-hexagon.aar’ to your app - this is in addition to the standard tensorflow-lite AAR (nightly or release). [Relevant instructions](https://stackoverflow.com/questions/16682847/how-to-manually-include-external-aar-package-using-new-gradle-android-build-syst). + You can do this by running bazel command like example below for arm64. + We will provide a version hosted on JCenter soon. + +``` +bazel build -c opt --config=android_arm64 tensorflow/lite/experimental/delegates/hexagon/java:tensorflow-lite-hexagon +``` + 1. Run “hexagon_nn_skel.run” - Note: you will need to accept the license agreement. It should provide 3 different shared libraries “libhexagon_nn_skel.so”, “libhexagon_nn_skel_v65.so”,