“Could not interpret optimizer identifier” error in Keras

后端 未结 14 1456
别跟我提以往
别跟我提以往 2021-02-03 19:47

I got this error when I tried to modify the learning rate parameter of SGD optimizer in Keras. Did I miss something in my codes or my Keras was not installed properly?

14条回答
  •  礼貌的吻别
    2021-02-03 20:08

    For some libraries (e.g. keras_radam) you'll need to set up an environment variable before the import:

    import os
    os.environ['TF_KERAS'] = '1'
    
    import tensorflow
    import your_library
    

提交回复
热议问题