initialize_all_variables已被弃用,将在2017-03-02之后删除。 说明更新:使用tf.global_variables_initializer代替。 就把tf.initialize_all_variables()改为global_variables_initializer()就可以了原文:https://blog.csdn.net/wqqgo/article/details/75675323