How to switch Backend with Keras (from TensorFlow to Theano)

前端 未结 8 1386
南旧
南旧 2020-12-07 16:23

I tried to switch Backend with Keras (from TensorFlow to Theano) but did not manage. I followed the temps described here but it doesn\'t work. I created a keras.json in the

8条回答
  •  一生所求
    2020-12-07 17:11

    For Linux systems, the hidden .keras directory will be created in the user’s home directory. To observe whether or not it has been created, run the following command from your home directory (the -a allows you to see hidden files and directories).

    ls –a 
    

    If the directory is there, then cd into it and modify the keras.json file. If it’s not there, then create the directory with

    mkdir .keras
    

    Then create the file with

    touch keras.json 
    

    Then edit the file to make the config changes you referenced to change the backend engine to Theano.

    This process is covered fully in this video.

提交回复
热议问题