How to Update Tensorflow from source

前端 未结 5 1879
谎友^
谎友^ 2020-12-29 16:34

I installed the latest Tensorflow 0.5.0 from source via git clone. and want to update to Tensorflow 0.6.0

git pull
./configure
baze         


        
5条回答
  •  礼貌的吻别
    2020-12-29 17:11

    git pull doesn't work for me since some local files are modified by the last build so with a slight modification I update like this:

    git fetch --all
    git reset --hard origin/master
    ./configure
    bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
    bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
    sudo pip install /tmp/tensorflow_pkg/tensorflow-0.8.0-py2-none-any.whl
    

    Tested to work as of today. The Installation from Source instructions in tensorflow docs are misleading in the sense they only include the real pip wheel installation commands for Mac and the example-trainer build command exists instead in Linux instructions.

提交回复
热议问题