TypeError: Unexpected keyword argument passed to optimizer: learning_rate

前端 未结 13 1622
感情败类
感情败类 2021-02-13 04:16

I am trying to load a Keras model which was trained on an Azure VM (NC promo). But I am getting the following error.

TypeError: Unexpected keyword argumen

13条回答
  •  既然无缘
    2021-02-13 05:01

    i got the same error while i was working in two different PC. in some versions of tensorflow is tf.keras.optimizers.SGD(lr = x) while in other verions istf.keras.optimizers.SGD(learning rate = x).

提交回复
热议问题