TypeError:意外的关键字参数传递给了优化器:learning_rate [英] TypeError: Unexpected keyword argument passed to optimizer: learning_rate

查看:512
本文介绍了TypeError:意外的关键字参数传递给了优化器:learning_rate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试加载在Azure VM(NC促销)上受过训练的Keras模型.但是我遇到了以下错误.

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:意外的关键字参数传递给了Optimizer:learning_rate

TypeError: Unexpected keyword argument passed to optimizer:learning_rate

这是我用来加载模型的代码段:

Here is the code snippet that I am using to load my model:

from keras.models import load_model
model = load_model('my_model_name.h5')

推荐答案

我通过重新安装tensorflow库(具有更新版本)解决了该问题,并将nvcuda.dll文件放置在system32文件夹下.

I resolved it by reinstalling the tensorflow library (with an updated version) and also placed the nvcuda.dll file under system32 folder.

这篇关于TypeError:意外的关键字参数传递给了优化器:learning_rate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆