0
点赞
收藏
分享

微信扫一扫

tensorflow报错:ValueError: features should be a dictionary of `Tensor`s. Given type: ……


问题描述

使用官网列子(网址:​​https://www.tensorflow.org/get_started/premade_estimators​​​ ,需要翻墙)执行iris程序(该项目位于 ​​https://github.com/tensorflow/models​​ )时报错:

tensorflow报错:ValueError: features should be a dictionary of `Tensor`s. Given type: ……_官网

解决方法

更新tensorflow(​​tf.__version__​​返回版本号,我的从1.4更至1.6)

pip install --upgrade tensorflow

如果其后遇到ImportError: cannot import name 'add_newdocs'错误,使用如下命令​conda install numpy​,然后再更新tensorflow。


举报

相关推荐

0 条评论