python 执行tenforflow报错:
WARNING:tensorflow:From /usr/lib/python2.7/site-packages/tensorflow/python/util/tf_should_use.py:107: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
解决方法:
使用tf.global_variables_initializer()代替tf.initialize_all_variables()
将
init_op = tf.initialize_all_variables()
改成
init_op = tf.global_variables_initializer()