Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change 01_linear_regression.py for new version of TensorFlow #68

Closed
wants to merge 2 commits into from

Conversation

jiko21
Copy link

@jiko21 jiko21 commented Jan 5, 2017

When I run 01_linear_regression.py in my pc,
terminal says
"WARNING:tensorflow:From 01_linear_regression.py:27 in .: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead."
So, I changed tf.initialize_all_variables().run() to tf.global_variables_initializer().run()

@hunkim
Copy link
Collaborator

hunkim commented Jan 5, 2017

Looks good. Can you also midify the .yml file to install the latest version of TF?

@jiko21
Copy link
Author

jiko21 commented Jan 6, 2017

I fixed .yml.

@@ -11,9 +11,9 @@ install:
- pip install matplotlib
# install TensorFlow from https://storage.googleapis.com/tensorflow/
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl;
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps just php install tensorflow for the automatic future update?

@hunkim
Copy link
Collaborator

hunkim commented Jan 11, 2017

@DaikiKojima TF 1.0 alpha came out. Do you think you can update code using 1.0 alpha?

@hunkim hunkim closed this Jan 15, 2017
@hunkim
Copy link
Collaborator

hunkim commented Jan 15, 2017

Please check out #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants