keras module 'tensorflow' has no attribute 'placeholder'

pip install tensorflow-gpu==1.13.1

keras=2.2.4

我的是因为在tf2下使用了tf1的API,
解决方式:

1.重新安装tensorflow-gpu==1.13.1

2.或者:

import tensorflow as tf

替换为:

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

keras module 'tensorflow' has no attribute 'placeholder'相关推荐

  1. 问题解决——AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    问题解决--AttributeError: module 'tensorflow' has no attribute 'placeholder' 参考文章: (1)问题解决--AttributeErr ...

  2. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 T1.降低tensor ...

  3. 成功解决AttributeError: module tensorflow has no attribute placeholder

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 解决问题 Attrib ...

  4. AttributeError: module 'tensorflow' has no attribute 'placeholder'

    AttributeError: module 'tensorflow' has no attribute 'placeholder' 在使用TensorFlow时,定义一个占位符,出现错误 Attri ...

  5. AttributeError: module 'tensorflow' has no attribute 'placeholder'等一系列tensorflow版本导致的问题

    新人tensorflow2.1版本导致程序我无法运行最简单的办法 法1 tensorflow.compat.v1 import tensorflow.compat..v1 as tf tf.disab ...

  6. AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    用下面方法成功解决: https://blog.csdn.net/scp_6453/article/details/110724880

  7. AttributeError: module ‘tensorflow‘ has no attribute ‘InteractiveSession‘或 ‘placeholder‘的解决

    问题提示: AttributeError: module 'tensorflow' has no attribute 'InteractiveSession' 或者: AttributeError: ...

  8. AttributeError: module 'tensorflow' has no attribute 'random_normal'

    执行<TensorFlow实战Google深度学习框架(第2版)>only源代码 CH3 时如下语句报错 batch_size = 8 w1= tf.Variable(tf.random_ ...

  9. tensorflow版本问题导致的错误AttributeError: module ‘tensorflow‘ has no attribute ‘***‘

    问题解决--AttributeError: module 'tensorflow' has no attribute 'placeholder' - yuanyuanWu11 - 博客园 tensor ...

最新文章

  1. IronRuby - 如何在VS2010下调试IronRuby代码
  2. python 实现判断一个列表中的一个或多个元素是否存在于一个字符串中。
  3. 正则表达式在js和java中的使用
  4. CSS打造很棒的黑色背景下的导航菜单
  5. 如何获取Debug Android Hash Key
  6. 使用keras进行深度学习_如何在Keras中通过深度学习对蝴蝶进行分类
  7. Mysql 引擎 表还是库_mysql 库、表、引擎
  8. java框架之SpringCloud(2)-Rest微服务案例
  9. iOS 实现启动屏动画(Swift实现,包含图片适配)
  10. centos7,pyinstaller打包出application/x-sharedlib,这是一个求助的帖子
  11. Java判定1到4可以组成多少个互不相同且无重复的三位数
  12. prometheus命令_Prometheus
  13. K-摇臂赌博机算法与实现
  14. C++:标准程序库-STL迭代器Iterator
  15. ik分词 java_Java实现使用IK Analyzer实现中文分词
  16. div标签清除float浮动样式方法
  17. html+css实现漂亮的透明登录页面,HTML实现炫酷登录页面
  18. asp.net在前台web页面中使用Javascript调用RTX腾讯通的聊天窗口
  19. linux英英词典项目,五大主流英英词典(ESL)比较使用测评报告
  20. python 中 chardet 的使用

热门文章

  1. Java接口interface
  2. django oracle数据库配置,django连接oracle时setting 配置方法
  3. mvc ajax get请求,springMVC 中 ajax get 请求和 post 请求的坑以及参数传递
  4. matlab的NLP功能,pyhanlp 共性分析与短语提取内容详解
  5. 计算机病毒不可能侵入rom,2008年职称计算机考试计算机基础试题7
  6. html基础实验的实验原理,html网页设计实验报告.doc
  7. 事件处理 ajax,AJAX的多事件处理机制
  8. flux读取不到数据_spring-webflux两种开发模式,获取不到使用ajax的post提交的数据?...
  9. 怎么判断时double和floatc++_安居客堂:您知道怎么选择优质的轻钢龙骨吗?
  10. python sanic部署_Sanic框架配置操作分析