腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
具有
生成器
错误
的
Tensorflow
拟合
方法
。
AttributeError
:'
tuple
‘
对象
没有
'
shape
’
属性
、
、
在做重大调整之前,我正在尝试建立一个基本
的
分段模型,无论我做得多么简单,我都会收到这个
错误
。我在合作实验室工作 Found 500 images belonging to 1 classes.())
AttributeError
: '
tuple
' object has no attribute '
shape
' 我认为这与我在网上找到
的
生成器
有关,但我不能准确地指出它到底是什么。我认为这也可能是一个潜在
的
浏览 77
提问于2020-09-14
得票数 1
1
回答
AttributeError
:'
tuple
‘
对象
没有
属性
'ndims',而使用
tensorflow
急切执行模式
、
、
、
input_dims=784) #gan.gen_forward(np.array(noise))我收到了跟随
错误
---------------------------------------------------------------------- 732 try: ~/anaconda3/lib/python3.6/site-p
浏览 0
提问于2019-01-18
得票数 2
回答已采纳
1
回答
Tensorflow
2:加载后无法跟踪子类模型
的
属性
、
、
、
、
detector = Detector()这给了我一个
错误
:
AttributeError
:‘检测器’
对象
没有
属性
'extracted_feature',这是可以理解
的
,因为我一开始就
没有
调用过模型。调用模型后,Detector
对象
现在
具有
属性
extracted_feature。因此,以下代码将在
没有
任何<em
浏览 3
提问于2021-06-08
得票数 1
回答已采纳
1
回答
带有RNNCell
的
TensorFlow
attention_decoder (state_is_
tuple
=True)
因为
TensorFlow
代码表明“这种默认行为(state_is_
tuple
=False)很快就会被弃用”,所以我为编码器设置了state_is_
tuple
=True。问题是,当我将编码器
的
状态传递给attention_decoder时,它报告了一个
错误
:这个问题似乎与seq2seq.p
浏览 0
提问于2016-06-26
得票数 4
1
回答
TensorFlow
2
AttributeError
:'
tuple
‘
对象
没有
属性
'layer’
、
、
、
、
我遵循了一个教程来使用Keras预先训练过
的
模型,但是我得到了这个
错误
:我正在Google上运行我
的
代码,所以我试图将
TensorFlow
降级到1.x版本,但是这个问题
没有
解决。下面是我
的
代码片段: include_top=Fa
浏览 5
提问于2020-06-23
得票数 0
1
回答
AttributeError
:“Embedding”
对象
没有
具有
TensorFlow
后端
的
属性
“”get_
shape
“”
、
、
我正在尝试理解嵌入层是如何与掩蔽一起工作
的
(从序列到序列回归)。这段简单
的
代码失败,
错误
为:
AttributeError
: 'Embedding' object has no attribute 'get_
shape
'。这似乎是真的,但我不知道如何解决它。:Using
TensorFlow
bac
浏览 0
提问于2017-05-31
得票数 3
1
回答
在Keras中使用通用句子编码器嵌入层
、
、
、
、
我尝试使用Keras将USE作为嵌入层加载到我
的
模型中。我使用了两种
方法
。第一个是从代码here改编而来
的
,如下所示: import
tensorflow
as tf import,))(sentence_input) 模型已成功创建,但在
拟合
期间(一旦它开始训练),它给出了以下
错误
: 2020-12-01 10:45:12.307164: W
tensorflow
&
浏览 69
提问于2020-12-01
得票数 1
1
回答
TensorFlow
特征值与特征向量
、
、
、
我想在
TensorFlow
中使用特征值,但是它使用“tf.self_adjoint_eig”给出了
错误
的
特征值/特征向量。
浏览 0
提问于2018-07-26
得票数 3
1
回答
无法在Linux或Windows下构建不同
错误
的
示例模型
、
、
、
在Linux (Ubuntu14.04LTS,Python3.5,
Tensorflow
1.2.1,Keras 2.0.6)下,它会抱怨
AttributeError
:“张量”
对象
没有
属性
“_keras_
shape
浏览 6
提问于2017-07-12
得票数 1
回答已采纳
1
回答
AttributeError
:“”KerasTensor“”
对象
没有
属性
“”_keras_
shape
“”
、
、
、
、
您好,我正在制作一个用于训练数据集
的
模型,但是在我
的
resnet_model中,我遇到了
属性
错误
,所以请帮助我解决这个
错误
。from Lib.HistoryGraph import HistoryGraphfrom Lib.utils import mkdirsimport os from keras.optimizers import SG
浏览 411
提问于2021-05-08
得票数 1
回答已采纳
1
回答
Tensorflow
,为变量赋值
我完全是
tensorflow
的
新手,我正在学习 return ref.assign(value)
AttributeError
: 'Tensor'object has no
浏览 4
提问于2017-06-26
得票数 7
回答已采纳
1
回答
如何使用caffe convnet进行视频帧中
的
目标检测?
、
、
、
、
我使用了来自链接
的
代码,并成功地完成了检测,但问题是,它只是来自网络摄像头。我试图修改代码,以便它可以从文件中读取。real_time_object_detection.py --prototxt 读取文件时遇到
的
错误
是我得到
的
错误
是: C:\Users\DEBASMITA\AppData\Local\Programs\Python\Python35\rea
浏览 0
提问于2018-03-16
得票数 0
回答已采纳
1
回答
AttributeError
:对于
具有
tensorflow
的
拥抱脸bert.AutoModel模型,“KerasTensor”
对象
没有
属性
“size”
、
、
、
我正在
tensorflow
2上工作,我使用了Hugface
的
预训练BERT和
Tensorflow
2来做文本分类,这里我想用它来创建神经网络:从
tensorflow
.keras导入层 from transformersAutoModel.from_pretrained("bert-base-uncased") input_ids = layers.Input(
shape
=(max_len,), dtype=tf.int
浏览 16
提问于2021-04-27
得票数 1
1
回答
keras-伯特load_trained_model_from_checkpoint
错误
、
、
我有一段代码用于加载一个执行良好
的
BERT模型,但现在它引发了一个
错误
。load_trained_model_from_checkpoint( config_path、checkpoint_path、trainable=True、seq_len=SEQ_LEN、output_layer_num=4 )
AttributeError
:'
tuple
‘
对象
没有
属性
'layer’ke
浏览 5
提问于2022-02-03
得票数 0
1
回答
AttributeError
:模块'
tensorflow
‘
没有
属性
’占位符‘
、
、
我在kaggle内核上做面部表情识别,一切都进展顺利,但突然下面的代码开始出现
错误
。进口
tensorflow
作为tf
AttributeError
:模块'
tensorflow
‘
没有
属性
’占位符
浏览 2
提问于2020-10-15
得票数 0
3
回答
TensorFlow
:
AttributeError
:“张量”
对象
没有
属性
“形状”
、
、
我有以下使用
TensorFlow
的
代码。在我重塑了一张清单后,上面写着 print "train_data.
shape
: " + str(train_data.
shape
) train_data =tf.reshape(train_
浏览 6
提问于2016-07-29
得票数 21
回答已采纳
1
回答
将张量从128,128,3转换为129,128,3,随后将填充到该张量
的
1,128,3值发生。
、
、
、
这是我为GAN编写
的
代码,在该代码中,模型正在初始化,所有工作都正常,只有与问题相关
的
代码出现在这里:img = self.generator(z)temp = tf.get_variable("temp", [1, 128所以,我
的
问题是,这种做法是否正确?此外,如果它是正确
的<
浏览 1
提问于2018-07-05
得票数 1
回答已采纳
1
回答
readline()
方法
出现
错误
:
AttributeError
:'
tuple
‘
对象
没有
属性
“readline”
、
、
、
、
我使用jsonstreams.Stream
方法
使用Python2.7将数据输入到json文件中,但在使用readline()
方法
从管道输入读取数据时出错。
错误
声明
AttributeError
:'
tuple
‘
对象
没有
属性
'readline'。output_e.write('title', record[3]) output_e.write('body', rec
浏览 6
提问于2021-01-02
得票数 0
回答已采纳
1
回答
在
Tensorflow
2.7.0中用什么代替predict_classes()?
、
、
、
我正在尝试训练一个NLP神经机器翻译模型,在该代码中,我使用了Keras
的
顺序模型。我想以类
的
形式预测输出,但是由于我使用
的
是
Tensorflow
2.7.0,而且predict_classes()现在已经贬值了,我应该如何绕过它呢?下面是代码片段-:preds = model.predict_classes(testX.reshape((testX.
shape
[0],testX.
shape</
浏览 3
提问于2021-12-05
得票数 1
回答已采纳
1
回答
无法将keras模型转换为
tensorflow
:类型
对象
‘稠密’
没有
属性
'from_config‘
、
、
、
、
我很难将我
的
Keras模型转换成一个
TensorFlow
估计器。我得到了以下
错误
: from
tensorflow
import keras import
tensorflow
tf.layers.Dense(units = 6, kernel_initializer = keras.initialize
浏览 1
提问于2018-04-26
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
必背Python单词:常用报错提示单词20个
Python3基础笔记之5:面向对象
Python中的AttributeError:属性错误处理
Python 简明语法总结
深度学习系列教程(六)tf.data API 使用方法介绍
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券