[TensorFlow] demo1 tf.initialize_all_variables函数换成新的tf.global_variables_initializer函数

来源:互联网 发布:陈震老婆淘宝店叫什么 编辑:程序博客网 时间:2024/05/20 23:59

WARNING:tensorflow:From /usr/local/lib/python3.5/dist-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.
Instructions for updating:
Use `tf.global_variables_initializer` instead.


#init = tf.initialize_all_variables() # old api init = tf.global_variables_initializer() #new api


阅读全文
0 0
原创粉丝点击