Keras + tensorflow gives the error “no attribute 'control_flow_ops'”

后端 未结 3 1938
情深已故
情深已故 2020-12-14 21:36

I am trying to run keras for the first time. I installed the modules with:

pip install keras --user
pip install tensorflow --user

and then

3条回答
  •  半阙折子戏
    2020-12-14 21:55

    If not Using TensorFlow 1.0.0; use tf.python_io in later versions

    import tensorflow as tf 
    
    tf.python_io.control_flow_ops = tf
    

提交回复
热议问题