└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # tensorflow-community-wheels 2 | TLDR; if you built a custom TensorFlow wheel, upload it somewhere, and post a link under Issues. 3 | If you find a wheel useful, respond to the issue (ie, GitHub emoji), so that people know to keep maintaining that configuration. 4 | 5 | Below is an example of building/uploading a wheel 6 | 7 | Configure is automated with https://github.com/yaroslavvb/stuff/blob/master/configure_tf.sh 8 | Steps for configuring bazel env: https://medium.com/@yaroslavvb/setting-up-tensorflow-dev-environment-sep-19-fd27b321de14 (previous [version](https://github.com/tensorflow/tensorflow/issues/7443#issuecomment-279182613)) 9 | 10 | # Linux one-time build 11 | ``` 12 | tmux new-session -s bazel -n 0 13 | cd ~/git2/tensorflow 14 | source activate bazel 15 | 16 | git fetch --all 17 | git rebase tf/master 18 | 19 | ~/g/git/stuff/configure_tf.sh 20 | 21 | export LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH" 22 | export flags="--config=opt --config=cuda -k" 23 | export tag=xlamem 24 | export date=feb22 25 | 26 | bazel build $flags -k //tensorflow/tools/pip_package:build_pip_package 27 | bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg 28 | mkdir -p ~/tfbins/$date.$tag 29 | cp `find /tmp/tensorflow_pkg -type f ` ~/tfbins/$date.$tag 30 | bazel test $flags //tensorflow/... 31 | bazel test $flags -j 1 //tensorflow/... 32 | bazel build $flags //tensorflow/... 33 | 34 | 35 | export wheel=`find ~/tfbins/$date.$tag -type f` 36 | export basename=`find ~/tfbins/$date.$tag -type f -printf "%f\n"` 37 | cd ~/tfbins/$date.$tag 38 | fullname=$date.$tag.$basename 39 | ln -s $basename $fullname 40 | export bucket=tensorflow-community-wheels 41 | gsutil cp $fullname gs://$bucket 42 | gsutil acl set public-read gs://$bucket/$fullname 43 | 44 | echo https://storage.googleapis.com/tensorflow-community-wheels/$fullname 45 | ``` 46 | --------------------------------------------------------------------------------