Heim  >  Fragen und Antworten  >  Hauptteil

python - keras安装

keras安装好了,tensorflow也安装好了
但运行的时候出现这个问题,有人以前遇到过吗?能帮忙解决一下吗?谢谢了

迷茫迷茫2717 Tage vor650

Antworte allen(2)Ich werde antworten

  • 天蓬老师

    天蓬老师2017-04-18 10:33:47

    这个是keras的问题,修改keras/backend/tensorflow_backend.py

    try:
        import tf.contrib.ctc as tfctc
    except ImportError:
        import tf.core.util.ctc as tfctc

    改为

    try:
        import tf.contrib.ctc as tfctc
    except ImportError:
        import tf.core.util.ctc as tfctc
    finally:
        tf.ctc = tfctc
       del tfctc

    via https://github.com/fchollet/k...

    Antwort
    0
  • ringa_lee

    ringa_lee2017-04-18 10:33:47

    请用ananconda

    Antwort
    0
  • StornierenAntwort