老版本为 init = tf.initialize_all_variables()新版本为 init = tf.global_variables_initializer() 转载于:https://www.cnblogs.com/xqnq2007/p/7647919.html