首页 Paddle框架 帖子详情
使用paddle库时出现警告
收藏
快速回复
Paddle框架 问答模型训练学习资料 299 1
使用paddle库时出现警告
收藏
快速回复
Paddle框架 问答模型训练学习资料 299 1

在用paddle库处理波士顿房价时出现警告Warning:: 0D Tensor cannot be used as 'Tensor.numpy()[0]' . In order to avoid this problem, 0D Tensor will be changed to 1D numpy currently, but it's not correct and will be removed in release 2.6. For Tensor contain only one element, Please modify 'Tensor.numpy()[0]' to 'float(Tensor)' as soon as possible, otherwise 'Tensor.numpy()[0]' will raise error in release 2.6.请问我该怎么解决,还有,有没有paddle的库说明

0
收藏
回复
全部评论(1)
时间顺序
李琴在努力工作
#2 回复于2023-10

shjgskgwsotsgj

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户