Keras和TF之间存在问题,可能tf.python.control_flow_ops不存在或不再可见。使用下面的导入语句,您可以解决此问题
import tensorflow as tftf.python.control_flow_ops = tf
有关详细信息,请检查:https :
//github.com/fchollet/keras/issues/3857

Keras和TF之间存在问题,可能tf.python.control_flow_ops不存在或不再可见。使用下面的导入语句,您可以解决此问题
import tensorflow as tftf.python.control_flow_ops = tf
有关详细信息,请检查:https :
//github.com/fchollet/keras/issues/3857