社区
脚本语言
帖子详情
module 'tensorflow' has no attribute 'InteractiveSession的解决方法
JiaMian8291
2017-07-28 09:55:58
代码里面有这么一句:sess = tf.InteractiveSession()
运行的时候提示: module 'tensorflow' has no attribute 'InteractiveSession'
使用ide是anaconda里的spyder,python版本3.5
InteractiveSession不是自带的接口么,为什么会报错呀?
...全文
5073
3
打赏
收藏
module 'tensorflow' has no attribute 'InteractiveSession的解决方法
代码里面有这么一句:sess = tf.InteractiveSession() 运行的时候提示: module 'tensorflow' has no attribute 'InteractiveSession' 使用ide是anaconda里的spyder,python版本3.5 InteractiveSession不是自带的接口么,为什么会报错呀?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Dragon水魅
2021-07-13
打赏
举报
回复
一楼正确答案
丶子麒
2020-12-01
打赏
举报
回复
9
import tensorflow as tf 替换为: import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
bibiANDkiki
2019-12-06
打赏
举报
回复
2
使用 sess = tf.compat.v1.InteractiveSession()
【深度学习】
Tensorflow
报错:
Attribute
Error:
module
‘
tensorflow
‘ has no
attribute
‘
Interactive
Session
‘
【深度学习】
Tensorflow
:
Attribute
Error:
module
'
tensorflow
' has no
attribute
'
Interactive
Session
' 在运行
Tensorflow
时报错:
Attribute
Error:
module
'
tensorflow
' has no
attribute
'
Interactive
Session
' 这...
Attribute
Error:
module
'
tensorflow
' has no
attribute
'
Session
'错误
解决
Ubuntu刚安装好
Tensorflow
...报错
Attribute
Error:
module
'
tensorflow
' has no
attribute
'
Session
'。这其实不是安装错误,是因为在新的
Tensorflow
2.0版本中已经移除了
Session
这一模块,改换运行代码 tf.compat.v...
Attribute
Error:
module
‘
tensorflow
‘ has no
attribute
‘
Interactive
Session
‘或 ‘placeholder‘的
解决
Attribute
Error:
module
‘
tensorflow
’ has no
attribute
‘
Interactive
Session
’ 或者:
Attribute
Error:
module
‘
tensorflow
’ has no
attribute
‘placeholder’
解决
: 用 import
tensorflow
.compat.v1 as tf ...
Attribute
Error:
module
‘
tensorflow
‘ has no
attribute
‘
Interactive
Session
‘(亲测有效)
Attribute
Error:
module
'
tensorflow
' has no
attribute
'
Interactive
Session
' 这其实不是包的安装错误,是因为在新的
Tensorflow
2.0版本中已经移除了
Session
这一模块,改换运行代码: sess = tf....
【
Tensorflow
报错】
Attribute
Error:
module
‘
tensorflow
‘ has no
attribute
‘
Interactive
Session
‘
tensorflow
报错
脚本语言
37,719
社区成员
34,239
社区内容
发帖
与我相关
我的任务
脚本语言
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
复制链接
扫一扫
分享
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
试试用AI创作助手写篇文章吧
+ 用AI写文章