How to update tensorflow to support tf.contrib?

Joey

I want use initializers and batch_norm in tf.contrib module, but my program says can't find it. I re-install tensorflow still can't use tf.contrib module. Can anyone tell me why?

Martin Thoma

I don't know what you did, but you certainly don't have the latest Tensorflow version from Google. You should follow this tutorial to install it.

To sum it up:

  1. Make sure you have the dependencies: sudo apt-get install python-pip python-dev
  2. Uninstall whatever you have right now: pip uninstall tensorflow
  3. Set up variables:

Choose the correct one:

# Ubuntu/Linux 64-bit, CPU only, Python 2.7
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl

# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7 
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl

# Ubuntu/Linux 64-bit, CPU only, Python 3.4
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp34-cp34m-linux_x86_64.whl

# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4 
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp34-cp34m-linux_x86_64.whl

# Ubuntu/Linux 64-bit, CPU only, Python 3.5
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp35-cp35m-linux_x86_64.whl

# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5 
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp35-cp35m-linux_x86_64.whl
  1. Install it

Choose the correct one:

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

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to update tensorflow to support tf.contrib?

From Dev

What is the purpose of the tf.contrib module in Tensorflow?

From Dev

What is the purpose of the tf.contrib module in Tensorflow?

From Dev

TensorFlow - tf.layers vs tf.contrib.layers

From Dev

TensorFlow: How Can I get the total_cm in tf.contrib.metrics.streaming_mean_iou

From Dev

How tensorflow tf.contrib.learn.SVM reload trained model and use predict to classify new data

From Dev

How to use the param of 'weights' of tensorflow function tf.contrib.legacy_seq2seq.sequence_loss_by_example?

From Dev

Tensorflow: Incompatible types for dataset.map() in tf.contrib.data

From Dev

How to give beta and gamma in tf.contrib.layers.batch_norm

From Dev

How to use tf.contrib.model_pruning on MNIST?

From Dev

how to select parameter for tf.contrib.learn.DNNRegressor

From Dev

How to extract name from tf.contrib.layers.fully_connected()

From Dev

Is tf.contrib.layers.fully_connected() behavior change between tensorflow 1.3 and 1.4 an issue?

From Dev

Linear regression, Tensorflow, non-linear equation, tf.contrib.learn

From Dev

tf.control_dependencies(tf.get_collection(tf.GraphKeys.UPDATE_OPS)) in tensorflow

From Dev

Tensorflow `tf.layers.batch_normalization` doesn't add update ops to `tf.GraphKeys.UPDATE_OPS`

From Dev

How to use tf.while_loop() in tensorflow

From Dev

How to use tf.datasets with iterator in Tensorflow

From Dev

How to update projects with composer support?

From Dev

How to use tensorflow debugging tool tfdbg on tf.estimator in Tensorflow?

From Dev

How do I pass a character string into a tf.contrib.rnn.MultiRNNCell?

From Dev

How to save and load tensor flow model after using tf.contrib.learn.LinearClassifier?

From Dev

where is the ./configure of TensorFlow and how to enable the GPU support?

From Dev

How does Tensorflow support Cuda streams?

From Java

Module 'tensorflow' has no attribute 'contrib'

From Dev

Use "tf.contrib.factorization.KMeansClustering"

From Dev

tf.reshape vs tf.contrib.layers.flatten

From Java

How to import keras from tf.keras in Tensorflow?

From Dev

How to get the currently active tf.variable_scope in TensorFlow?

Related Related

  1. 1

    How to update tensorflow to support tf.contrib?

  2. 2

    What is the purpose of the tf.contrib module in Tensorflow?

  3. 3

    What is the purpose of the tf.contrib module in Tensorflow?

  4. 4

    TensorFlow - tf.layers vs tf.contrib.layers

  5. 5

    TensorFlow: How Can I get the total_cm in tf.contrib.metrics.streaming_mean_iou

  6. 6

    How tensorflow tf.contrib.learn.SVM reload trained model and use predict to classify new data

  7. 7

    How to use the param of 'weights' of tensorflow function tf.contrib.legacy_seq2seq.sequence_loss_by_example?

  8. 8

    Tensorflow: Incompatible types for dataset.map() in tf.contrib.data

  9. 9

    How to give beta and gamma in tf.contrib.layers.batch_norm

  10. 10

    How to use tf.contrib.model_pruning on MNIST?

  11. 11

    how to select parameter for tf.contrib.learn.DNNRegressor

  12. 12

    How to extract name from tf.contrib.layers.fully_connected()

  13. 13

    Is tf.contrib.layers.fully_connected() behavior change between tensorflow 1.3 and 1.4 an issue?

  14. 14

    Linear regression, Tensorflow, non-linear equation, tf.contrib.learn

  15. 15

    tf.control_dependencies(tf.get_collection(tf.GraphKeys.UPDATE_OPS)) in tensorflow

  16. 16

    Tensorflow `tf.layers.batch_normalization` doesn't add update ops to `tf.GraphKeys.UPDATE_OPS`

  17. 17

    How to use tf.while_loop() in tensorflow

  18. 18

    How to use tf.datasets with iterator in Tensorflow

  19. 19

    How to update projects with composer support?

  20. 20

    How to use tensorflow debugging tool tfdbg on tf.estimator in Tensorflow?

  21. 21

    How do I pass a character string into a tf.contrib.rnn.MultiRNNCell?

  22. 22

    How to save and load tensor flow model after using tf.contrib.learn.LinearClassifier?

  23. 23

    where is the ./configure of TensorFlow and how to enable the GPU support?

  24. 24

    How does Tensorflow support Cuda streams?

  25. 25

    Module 'tensorflow' has no attribute 'contrib'

  26. 26

    Use "tf.contrib.factorization.KMeansClustering"

  27. 27

    tf.reshape vs tf.contrib.layers.flatten

  28. 28

    How to import keras from tf.keras in Tensorflow?

  29. 29

    How to get the currently active tf.variable_scope in TensorFlow?

HotTag

Archive