TypeError: Unexpected keyword argument passed to optimizer: learning_rate

前端 未结 13 1663
感情败类
感情败类 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:00

    It was a simple fix for me. Check your tensorflow version. I trained my model on 1.14 and was predicting it on 2.0

    I used 1.14 again and it worked

提交回复
热议问题