腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
AttributeError
:“”
tensorflow.python.framework.ops.EagerTensor
“”
对象
没有
属性
“”
to_tensor
“”
python
、
tensorflow
、
google-colaboratory
、
huggingface-transformers
、
huggingface-tokenizers
奇怪的是,代码过去运行时
没有
任何问题,然后突然开始抛出这个错误。更可疑的是,代码在我的苹果M1 tensorflow配置中运行时
没有
任何问题。再说一次,我
没有
对我的代码做任何更改,但是现在代码不能在Google Colab中运行,尽管它过去运行起来
没有
任何问题。dataset_tok.remove_columns(['Text']).with_format('tensorflow') features = {x: dataset_tok[x].
浏览 50
提问于2021-10-14
得票数 1
1
回答
使用张量2DIM上的“转让人”函数更新张量值
python
、
tensorflow
changeAbleTensor = tf.Variable([[10,9],[9,8]]);上面的代码,给我一个错误 但是,当我将代码从changeAbleTensor[0][0].assign(10)更改为type(changeAbleTensor[0][0]), type(changeA
浏览 9
提问于2022-09-21
得票数 2
回答已采纳
1
回答
AttributeError
:“”
tensorflow.python.framework.ops.EagerTensor
“”
对象
没有
“”ravel“”
属性
“”
python
、
tensorflow
当我运行这个程序时,我得到了下面的错误。我附上我的错误和程序如下。我的程序出了什么问题? import randomsamples = X_test[index].ravel()ipd.Audio(samples, rate=16000) 你知道哪里出了问题吗?
浏览 52
提问于2020-09-15
得票数 1
1
回答
AttributeError
:“
tensorflow.python.framework.ops.EagerTensor
”
对象
没有
属性
“赋值”
python
、
tensorflow
、
tensorflow-lite
、
pruning
但是,无论我做什么,我都无法消除错误
AttributeError
: 下面是错误的完整堆栈跟踪
AttributeError
name)), fscop
浏览 24
提问于2022-11-23
得票数 0
1
回答
AttributeError
:“”
tensorflow.python.framework.ops.EagerTensor
“”
对象
没有
“”decode“”
属性
“”
python
、
numpy
、
tensorflow
、
tensorflow-datasets
、
tensorflow2.0
问题是np.load()不接受
tensorflow.python.framework.ops.EagerTensor
import tensorflow as tf import numpy as np
浏览 79
提问于2019-06-20
得票数 5
1
回答
TensorFlow.Data.Dataset和DatasetV1Adapter一样吗?
python
、
tensorflow
、
google-colaboratory
SomeTrainingDirectoryIterator, (tf.float32, tf.float32))另外,查看循环并查看我的数据集的最佳方法是什么?batch.items():使用training
浏览 5
提问于2020-02-19
得票数 9
回答已采纳
1
回答
使用tf.optimizer.Adam将Tensorflow Core 2α中的变量损失最小化的正确方法
python
、
python-3.x
、
tensorflow
gradient optimizer.apply_gradients([(grad, img)])
AttributeError
:
tensorflow.python.framework.ops.EagerTensor
对象
没有
属性
“_in_graph_mode” 我还尝试了其他的变体,比如摆脱GradientTape,直接使用优化器来最小化
浏览 0
提问于2019-05-05
得票数 0
1
回答
AttributeError
:'
AttributeError
‘
对象
没有
'To’
属性
python
但是我得到了这个
属性
错误。我正在尝试阅读电子邮件,并将它们转换为csv格式,以便我可以进一步应用Ml进行情绪分析。3002)
AttributeError
Traceback (most recent call last)----> 1 msg.To
浏览 12
提问于2021-01-14
得票数 0
1
回答
更改python中的字典值类型和类型提示
python
、
type-hinting
、
mypy
、
python-typing
例如,如果我通过mypy运行以下代码,它会抛出一个错误'...
没有
属性
"size“attr-defined‘。import numpy as npimport torch def
to_tensor
test_dict = {"foo": np.random.random((3,10,10)), "bar": np.random.random((3, 10,
浏览 49
提问于2021-09-13
得票数 1
回答已采纳
1
回答
AttributeError
:
对象
没有
属性
python
我有一个
对象
self.config,它有一些变量,我想首先检查self.config中是否存在一个变量('db_password'),如果存在,则修改变量值,如self.config.db_passwordself.config, enc_variable, f.decrypt(self.config.enc_variable.encode('ascii')).decode('ascii')) 配置:“
AttributeError
”
对象
没有
属性
“
浏览 36
提问于2021-04-01
得票数 0
回答已采纳
1
回答
AttributeError
:“……”
对象
没有
属性
“.”。
python
、
class
、
object
、
oop
我希望能够做到,如果对persons问题的描述包括需要一个新密码,那么它将用一个新生成的密码替换it支持响应(目前还
没有
创建该类,因此,我只想确定我可以打印它)。但我不知道我在这里做错了什么,花了两天时间(非常初学者)
AttributeError
浏览 2
提问于2022-04-15
得票数 0
回答已采纳
1
回答
AttributeError
:
对象
没有
属性
python
、
xml
、
odoo-8
但是我得到的错误如下..
AttributeError
: 'book.meeting' object has no attribute 'checkout_function'class
浏览 2
提问于2016-02-01
得票数 1
回答已采纳
1
回答
AttributeError
:
对象
没有
属性
?
python
、
oop
、
tkinter
、
tk
好了,这就是我得到的错误:
AttributeError
:'DES‘
对象
没有
属性
'summary_output’ 这就是我想要做的。使用这个set类,我将字符串设置为一个
对象
项,然后将其发送到我的DES类。我想在tk文本框元素上设置此项目作为摘要。我在DES类中收到的文本
没有
问题,但在尝试修改摘要元素时出现以下错误。Documents\Workspace\***\***\view\test.py", line 164, in set_summary_text
浏览 25
提问于2021-09-30
得票数 1
1
回答
AttributeError
:“
对象
没有
属性
”
python
、
class
、
object
、
tkinter
、
attributes
然而,我不断地发现这个错误,它说: n.ToonEerste(root) 我们想得到一些帮助解决我们的问题,我们
没有
太多的经验
浏览 0
提问于2018-03-13
得票数 0
回答已采纳
1
回答
AttributeError
:
对象
没有
属性
python
、
json
、
jira
、
python-jira
注:它运行了大约一年
没有
,但它当时的工作。self.raw_decode(s,idx=_w,(0).end() File“/usr/lib/python2.7/ JSON /decder.py”,第384行,在raw_decode raise (“
没有
JSON
对象
可以解码”)ValueError中:
没有
JSON
对象
可以解码 到目前为止,我试图将Json加载更改为simpleJson,但结果相同。更改Json应该解码的格式(例如unicode )<em
浏览 0
提问于2016-12-02
得票数 0
回答已采纳
1
回答
AttributeError
对象
没有
属性
python
、
django
在尝试注册新用户时,获取
AttributeError
at /url/ 'SignUpForm‘
对象
时
没有
属性
“时事通讯”from .forms import SignUpForm if form.newsletter == True: Exception Type:
AttributeError
浏览 1
提问于2022-04-29
得票数 0
回答已采纳
1
回答
AttributeError
:
对象
没有
属性
python
、
attributes
、
openerp
请更正代码,因为此时我收到了
属性
错误<field name="rate" on_change="on_change_ded_cal(rate)"/>**
AttributeError
: 'test_base' object has no attribute '
浏览 3
提问于2014-01-02
得票数 0
回答已采纳
2
回答
AttributeError
:'NoneType‘
对象
没有
属性
'strftime'
AttributeError
:'NoneType’
对象
没有
属性
'strftime‘
pandas
、
pywhois
我得到了"
AttributeError
:'NoneType‘
对象
没有
属性
'strftime'
AttributeError
:'NoneType’
对象
没有
属性
'strftime'“的错误。resp[key] = resp[key].strftime(self.datetime_format)
AttributeError<
浏览 26
提问于2022-07-16
得票数 0
1
回答
把"
tensorflow.python.framework.ops.EagerTensor
“转换成tensorflow.Tensor还是torch.Tensor?
python
、
tensorflow
、
pytorch
这是我的函数,它应该将img或jpeg文件转换成张量,这样我就可以将它提供给我的AI,但是它返回一个"
tensorflow.python.framework.ops.EagerTensor
“,我不知道如何将它转换为原生test_img_array, axis = 0) # shape: (1, 28, 28) return t 有
没有
人知道如何将这个转换成一个尺寸为
浏览 2
提问于2022-11-16
得票数 -1
1
回答
Django
AttributeError
:'GeoQuerySet‘
对象
没有
属性
’
AttributeError
‘
python
、
django
、
geo
、
django-1.10
我的django代码损坏了,并引发了以下
AttributeError
在我的代码中
浏览 8
提问于2017-07-12
得票数 2
回答已采纳
点击加载更多
相关
资讯
Python中的AttributeError:属性错误处理
Python对象属性的那些事
Python中的类成员存在性判断技巧
python渐进-类4
Python3.6内置函数——hasattr
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券