module ‘tensorflow’ has no attribute ‘reset_default_graph’_ 问题描述: 我的代码是这样的 import tensorflow as tf tf.reset_default_graph() with tf.Graph().as_default() as graph: 解决方案一 1)将引用改为 from