-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensorflow for Android and Windows #111
Comments
Sure, no reason why not :)
|
Some more info on the c++ interfaces |
(sideport from bytedeco/javacpp-presets#111)
It should be possible to make a build for Android with the cross-compiling functionality of Bazel explained here: https://github.com/bazelbuild/examples/tree/master/android-ndk As for Windows, we'll have to wait until Bazel itself starts supporting builds on it... |
I had a look at the Android build. The most important thing is to patch the WORKSPACE file (see https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#to-buildinstallrun). The thing is, that we'll need to specify the path to the local NDK in there. From what I saw, it is not possible to use environment variables in the WORKSPACE file. @saudet: How would you set the path in there dynamically with the path provided by the user to the cppbuild.sh script? |
Create a patch, like we have to do with FFmpeg, for example: |
@andreas-eberle Could you update your patch for TensorFlow 0.11.0rc1? |
I will see if I can fix it. |
@saudet: I have a fixed version. However, it depends on two fixes in tensorflow being merged into the r0.11 branch (see issue tensorflow/tensorflow#5374 and PR tensorflow/tensorflow#5135). I'll keep you updated. |
Great thanks! They should be in the release anyway right?
|
@saudet: Unfortunately the TensorFlow guys decided that they won't include the improved/fixed |
@saudet: Tensorflow seems to support Windows now. I will try to get it working. |
I've investigated on how we could proceed for Windows, and here's what I found:
|
* Add Android utility classes from the official Java API of TensorFlow
* Add Android utility classes from the official Java API of TensorFlow
It turns out that we don't need Anaconda when not building the bindings for Python. An artifact for Windows is now available, but until the next full release, since <dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>tensorflow</artifactId>
<version>1.7.0-1.4.1</version>
<classifier>windows-x86_64</classifier>
</dependency> But that's it! Enjoy and thanks for your patience. |
Do you think that the new google tensorflow will be presettable?
The text was updated successfully, but these errors were encountered: