关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
lemonOvO
2021-08-25 01:57
采纳率: 75%
浏览 519
首页
人工智能
已结题
module 'tensorflow._api.v2.train' has no attribute 'AdagradOptimizer'
tensorflow
python
收起
写回答
好问题
0
提建议
关注问题
微信扫一扫
点击复制链接
分享
邀请回答
编辑
收藏
删除
收藏
举报
1
条回答
默认
最新
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
爱晚乏客游
2021-08-25 09:20
关注
你的代码应该是1.x版本的,但是你的环境是2.x版本的就这样了,函数名和接口变了,要么去查一下接口名变成什么了,要么就新建个1.x的环境运行
本回答被题主选为最佳回答
, 对您是否有帮助呢?
本回答被专家选为最佳回答
, 对您是否有帮助呢?
本回答被题主和专家选为最佳回答
, 对您是否有帮助呢?
解决
无用
7
评论
打赏
微信扫一扫
点击复制链接
分享
举报
评论
按下Enter换行,Ctrl+Enter发表内容
查看更多回答(0条)
向“C知道”追问
报告相同问题?
提交
关注问题
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘slice_input_producer‘
2025-04-10 00:04
AI算法网奇的博客
Attribute
Error:
module
'
tensorflow
._
api
.
v2
.
train
' has no
attribute
'slice_input_producer'
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘
Optimize
r‘
2024-03-13 16:21
围城@的博客
将tf.
train
.
Optimize
r改为tf.kears.
optimize
rs.
Optimize
r。
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.compat.
v2
._
_internal__‘ has no
attribute
‘register_load_c
2024-09-19 09:28
duoyasong5907的博客
解决方法是安装低一些版本的
tensorflow
,安装完tf后,可以看到keras也同步安装好了。
记录解决
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.summary‘ has no
attribute
‘scalar‘
2024-01-22 20:57
Homicide_cll的博客
通过强制重新安装tensorboard解决了这个问题 pip install --force --no-deps tensorboard
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘
Ada
mp
Optimize
r‘
2021-09-24 09:09
桐棯的博客
错误提示:
Attribute
Error:
module
'
tensorflow
._
api
.
v2
.
train
' has no
attribute
'
Ada
mp
Optimize
r'
Tensorflow
2.6.0: >>> import
tensorflow
as tf >>> tf
._
_version__ '2.6.0' 出错代码段...
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘NewCheckpointReader‘解决方案
2022-02-23 17:25
小白白程序员的博客
TensorFlow
2.0版本以上,解决
Attribute
Error:
module
'
tensorflow
._
api
.
v2
.
train
' has no
attribute
'NewCheckpointReader'
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘
Ada
m
Optimize
r‘
2022-04-01 12:11
哈哈哈哈我是哇哈哈的博客
解决办法如下,调试成功 tf.
train
.
Ada
m
Optimize
r() => tf.
optimize
rs.
Ada
m()
【
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘
Optimize
r‘】
2022-08-03 22:41
好先生·的博客
解决方法有很多 这里提供继续使用tf v1的方法
optimize
r = tf.compat.v1.
train
.
Ada
m
Optimize
r(learning_rate=learning_rate).minimize(cost)
Python报错-
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘
Grad
ientDescent
Optimize
2021-10-18 17:07
zkw_1998的博客
二、报错原因:
TensorFlow
2.0及以上版本没有
Grad
ientDescent
Optimize
r这个属性 三、解决方法: 原先的
optimize
r = tf.
train
.
Grad
ientDescent
Optimize
r(learning_rate).minimize 修改为:
optimize
r = tf.compat.v1...
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘报错
2021-04-17 17:26
Komorebi_Liao的博客
原因:tf训练版本和执行tf.
train
.import_meta_graph语句上的tf版本不一致。
module
'
tensorflow
._
api
.
v2
.
train
' has no
attribute
'rmsprop
optimize
r'
2019-12-24 20:37
_吟游诗人的博客
tensorflow
1.X的版本使用rmsprop
optimize
r的调用方式为tf.
train
.RMSProp
Optimize
r() 然而去看新版官网:https://www.
tensorflow
.org/
api
_docs/python/tf/keras/
optimize
rs/RMSprop?version=stable 当
tensorflow
2.X想...
tensorflow
==2.0,
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘NewCheckpointReader‘
2021-10-04 23:43
PinkAir的博客
Use tf.compat.v1.
train
.NewCheckpointReader and it works.
解决:
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.
train
‘ has no
attribute
‘string_input_producer‘
2021-01-25 23:37
蠕动的爬虫的博客
实验报错: Traceback (most recent call ...
module
> batch_test(
train
_record_output,resize_height, resize_width) File "create_tf_record.py", line 274, in batch_test tf_image,tf_label = read_records(re
孜孜以求:
Attribute
Error:
module
‘
tensorflow
._
api
.
v2
.image‘ has no
attribute
‘load_img‘怎样修改什么提示的错误?
2023-11-30 17:29
zqzgng的博客
这可能是因为您使用了一个过时的代码,这个代码使用了
TensorFlow
1.x 版本中的函数。请注意,您还需要更新其他可能使用过时
TensorFlow
函数的部分代码。这个错误提示表明在
TensorFlow
2.x 版本中,没有名为。要...
没有解决我的问题,
去提问
向专家提问
向AI提问
付费问答(悬赏)服务下线公告
◇ 用户帮助中心
◇ 新手如何提问
◇ 奖惩公告
问题事件
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
系统已结题
9月2日
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
已采纳回答
8月25日
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
创建了问题
8月25日