Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare authored Jul 9, 2016
1 parent f129965 commit 9e1f235
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ After that you have to get/build the TensorFlow library `libtensorflow.so`. The
1. Clone the TensorFlow repo `git clone --recurse-submodules -b r0.9 https://github.com/tensorflow/tensorflow`
1. In `tensorflow` run `./configure` then `bazel build -c opt tensorflow:libtensorflow.so`
- In order to build with GPU support, CUDA needs to be installed and specified during `./configure`, and use `bazel build -c opt --config=cuda tensorflow:libtensorflow.so` to build.
* You can download a prebuilt [x86-64 linux binary](https://github.com/LaurentMazare/tensorflow-ocaml/releases/download/0.0.4/libtensorflow.so).
* An alternative is to [install TensorFlow using pip](https://www.tensorflow.org/versions/r0.9/get_started/os_setup.html#pip-installation) then copy the `.so` file in `libtensorflow.so`. You may have to tweak the following command depending on where TensorFlow was installed by pip.
```bash
cp ~/.local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so libtensorflow.so
Expand Down

0 comments on commit 9e1f235

Please sign in to comment.