Skip to content
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

Installation help? #37

Closed
rschulman opened this issue Nov 25, 2016 · 4 comments
Closed

Installation help? #37

rschulman opened this issue Nov 25, 2016 · 4 comments

Comments

@rschulman
Copy link
Contributor

This is perhaps one of those questions where I'm going to smack my for head at the answer, but..
I've built tensorflow/rust on my Linux computer and I now have a .rlib file, along with, presumably, the tensorflow .so file, but that's where the installation instructions stop. What are the next steps for getting those files where they need to be to use them in my own project? How do I tell cargo to use it?

Thanks so much!

@adamcrume
Copy link
Contributor

You don't need to build tensorflow/rust on its own. Just add tensorflow = "0.1" to the [dependencies] section of your project's Cargo.toml.

@rschulman
Copy link
Contributor Author

Yep, that's headsmack worthy. If you don't mind, I might do a PR on readme.md to add a section up front on just using the crate. Right now it does kind of read as if you need to build it all yourself in order to use it.

Am I correct that even just to use the crate from Cargo.toml you still have to have bazel installed?

@adamcrume
Copy link
Contributor

You still need Bazel because it still builds TensorFlow from source, even though it's automated. I've tried to write it so that it doesn't build TensorFlow if libtensorflow.so is already installed, but that feature seems to be a bit flaky.

@rschulman
Copy link
Contributor Author

Closed because fixed by #44.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants