Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download previous version of tensorflow?

Tags:

tensorflow

For some reason, I want to use some previous version of tensorflow('tensorflow-**-.whl', not source code on github) and where can I download the previous version and how can I know the corresponding cuda version that is compatible.

like image 211
lhao0301 Avatar asked Nov 04 '16 05:11

lhao0301


6 Answers

It works for me, since I have 1.6

pip install tensorflow==1.5
like image 142
Minions Avatar answered Nov 01 '22 10:11

Minions


Find available versions (some example results shown):

$ curl -s https://storage.googleapis.com/tensorflow |xmllint --format - |grep whl

<Key>linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl</Key>
<Key>linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl</Key>
<Key>linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl</Key>
<Key>linux/gpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl</Key>

You can, of course, filter the results further by piping through additional instances of grep.

Pick the version you want and install for Python with pip...

$ TFVERSION=linux/gpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
$ pip install https://storage.googleapis.com/tensorflow/$(TFVERSION)

Note: cp27 in the list above indicates compatibility with Python version 2.7.

like image 39
Brent Bradburn Avatar answered Nov 01 '22 09:11

Brent Bradburn


The above answer does not work any more.

You can install like this:

curl -s https://storage.googleapis.com/tensorflow |xmllint --format - |grep whl

<Key>linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl</Key>
<Key>linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl</Key>
<Key>linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl</Key>
<Key>linux/gpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl</Key>

Then pick the model you want.

Then you can run this kind of command :

# Mac OS X, CPU only, Python 2.7:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0-py2-none-any.whl

Then install Tensorflow:

# Python 2
$ sudo pip install --upgrade $TF_BINARY_URL

# Python 3
$ sudo pip3 install --upgrade $TF_BINARY_URL

Source: https://www.tensorflow.org/versions/r0.11/get_started/os_setup#download-and-setup

like image 40
Elkhan Dadashov Avatar answered Nov 01 '22 09:11

Elkhan Dadashov


You can do as suggested beforehand and search for available version in tesorflow site but you can't access versions older than available there.

So if you want an earlier version:

  1. go to https://github.com/tensorflow/tensorflow
  2. search for the version you want under branches - for instance r0.11
  3. Then go to the download and setup section. Again, for r0.11: https://github.com/tensorflow/tensorflow/blob/r0.11/tensorflow/g3doc/get_started/os_setup.md and install as described there.
like image 43
mataney Avatar answered Nov 01 '22 09:11

mataney


To download an older version of TensorFlow make sure you are using an older version of python as well. Otherwise, you will run into an issue like no version satisfying requirement found.

  1. Create a virtual environment for this and install python==3..5
  2. Use pip install tensorflow==1.4 or so.
like image 27
Dhruv Awasthi Avatar answered Nov 01 '22 10:11

Dhruv Awasthi


  1. Goto https://www.tensorflow.org/versions/
  2. Click on the version you want, for example: https://www.tensorflow.org/versions/r1.1/
  3. Click on install, for example: https://www.tensorflow.org/versions/r1.1/install/
  4. Then follow your preferred way to install
like image 29
Thamme Gowda Avatar answered Nov 01 '22 10:11

Thamme Gowda