nlintz / TensorFlow-Tutorials

Simple tutorials using Google's TensorFlow Framework
6k stars 1.51k forks source link

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

Closed jiko21 closed 7 years ago

jiko21 commented 7 years ago

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 commented 7 years ago

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

jiko21 commented 7 years ago

I fixed .yml.

hunkim commented 7 years ago

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

hunkim commented 7 years ago

Please check out #69