aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/java
diff options
context:
space:
mode:
authorGravatar Alan Chiao <alanchiao@google.com>2018-06-14 22:39:56 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-06-14 22:42:40 -0700
commitb84506ec8961306100ee67bd06ed8d2b59f4b1c8 (patch)
tree44e9de041ebfb450eb491b5f8f3b036c150622e1 /tensorflow/contrib/lite/java
parent9d67a56cc05268ece82dc941a3cc72f603f48d0a (diff)
Update demo app to use nightly TFLite build instead of latest release build.
When the demo app updates to use a backwards-incompatible change to the TFLite Java API at HEAD, it'll fail to build on the old release (which is missing the API change). Using the nightly build means the demo app will use a relatively fresh TFLite build with API changes, in addition to other improvements. The user may need to pull the latest demo code to keep up. PiperOrigin-RevId: 200672004
Diffstat (limited to 'tensorflow/contrib/lite/java')
-rw-r--r--tensorflow/contrib/lite/java/demo/README.md9
-rw-r--r--tensorflow/contrib/lite/java/demo/app/build.gradle2
2 files changed, 10 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/java/demo/README.md b/tensorflow/contrib/lite/java/demo/README.md
index 2e818f728e..e3cea19e16 100644
--- a/tensorflow/contrib/lite/java/demo/README.md
+++ b/tensorflow/contrib/lite/java/demo/README.md
@@ -1,5 +1,14 @@
# TF Lite Android App
+## Building in Android Studio with TensorFlow Lite AAR from JCenter.
+The build.gradle is configured to use TensorFlow Lite's nightly build.
+
+If you see a build error related to compatibility with Tensorflow Lite's Java API (example: method X is
+undefined for type Interpreter), there has likely been a backwards compatible
+change to the API. You will need to pull new app code that's compatible with the
+nightly build and may need to first wait a few days for our external and internal
+code to merge.
+
## Building from Source with Bazel
1. Follow the [Bazel steps for the TF Demo App](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#bazel):
diff --git a/tensorflow/contrib/lite/java/demo/app/build.gradle b/tensorflow/contrib/lite/java/demo/app/build.gradle
index b76eaad8bb..7f29deed83 100644
--- a/tensorflow/contrib/lite/java/demo/app/build.gradle
+++ b/tensorflow/contrib/lite/java/demo/app/build.gradle
@@ -52,7 +52,7 @@ dependencies {
compile 'com.android.support:support-annotations:25.3.1'
compile 'com.android.support:support-v13:25.2.0'
- compile 'org.tensorflow:tensorflow-lite:+'
+ compile 'org.tensorflow:tensorflow-lite:0.0.0-nightly'
testCompile 'junit:junit:4.12'
}