Skip to content

Commit

Permalink
Android: Replace 1.2.0-preview specifier in AAR dependency with <LATE…
Browse files Browse the repository at this point in the history
…ST_VERSION> so that the latest version of TF is always used.

PiperOrigin-RevId: 156609509
  • Loading branch information
andrewharp authored and tensorflower-gardener committed May 19, 2017
1 parent 675f0f9 commit 8fd3e9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tensorflow/contrib/android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ allprojects {
}
dependencies {
compile 'org.tensorflow:tensorflow-android:1.2.0-preview'
compile 'org.tensorflow:tensorflow-android:+'
}
```

This will tell Gradle to use the
[latest version](https://bintray.com/google/tensorflow/tensorflow-android/_latestVersion)
of the TensorFlow AAR that has been released to
[https://bintray.com/google/tensorflow/tensorflow-android](https://bintray.com/google/tensorflow/tensorflow-android).
You may replace the `+` with an explicit version label if you wish to
use a specific release of TensorFlow in your app.

To build the libraries yourself (if, for example, you want to support custom
TensorFlow operators), pick your preferred approach below:

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/examples/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,6 @@ apply from: "download-models.gradle"

dependencies {
if (nativeBuildSystem == 'cmake' || nativeBuildSystem == 'none') {
compile 'org.tensorflow:tensorflow-android:1.2.0-preview'
compile 'org.tensorflow:tensorflow-android:+'
}
}

0 comments on commit 8fd3e9f

Please sign in to comment.