Keras backend - ImportError: cannot import name ctc_ops

后端 未结 3 1955
孤城傲影
孤城傲影 2021-01-19 22:57

I have installed keras but when I write import keras I am getting the error : ImportError: cannot import name ctc_ops, I want to change the backend from te

3条回答
  •  野性不改
    2021-01-19 23:43

    As mentionned in the official documentation, you cannot have this json file using ~/.keras/keras.json unless you have already run it at least once before. I suggest you to create on with the default configuration:

    {
        "image_dim_ordering": "tf",
        "epsilon": 1e-07,
        "floatx": "float32",
        "backend": "tensorflow"
    }
    

提交回复
热议问题