Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根据官方例子无法复现paddle.unfold() #62388

Closed
sssjc666 opened this issue Mar 4, 2024 · 5 comments
Closed

根据官方例子无法复现paddle.unfold() #62388

sssjc666 opened this issue Mar 4, 2024 · 5 comments
Assignees
Labels
status/close 已关闭 type/question 用户提问

Comments

@sssjc666
Copy link

sssjc666 commented Mar 4, 2024

bug描述 Describe the Bug

import paddle

paddle.base.set_flags({"FLAGS_use_stride_kernel": True})

x = paddle.arange(9)

out = paddle.unfold(x, 0, 2, 4)
print(out)
根据官方提供例子(https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/unfold_cn.html),将代码拷贝至本地运行提示AttributeError: module 'paddle' has no attribute 'unfold'。是我哪里搞错了吗?请大佬指点

其他补充信息 Additional Supplementary Information

No response

@GuoxiaWang
Copy link
Contributor

你用的paddle 是什么版本?是2.6版本吗?

@sssjc666 sssjc666 closed this as completed Mar 5, 2024
@paddle-bot paddle-bot bot added status/close 已关闭 and removed status/new-issue 新建 labels Mar 5, 2024
@sssjc666
Copy link
Author

sssjc666 commented Mar 5, 2024

你用的paddle 是什么版本?是2.6版本吗?

我的本地是2.5.1

@GuoxiaWang
Copy link
Contributor

麻烦升级到2.6试试?

@paddle-bot paddle-bot bot added type/question 用户提问 and removed type/bug-report 报bug labels Mar 5, 2024
@sssjc666
Copy link
Author

sssjc666 commented Mar 5, 2024

麻烦升级到2.6试试?

多谢大佬指点!该问题在aistudio中的2.6.0的版本中已经解决,成功实现示例。
image
现在发现第二个错误,在本地更新paddle框架过程中,根据官方提供安装命令出现找不到对应包的情况(问题如图):
1709651212558(1)

在paddle安装qa中发现有相关说明,示例提示本地为32位python但安装paddle配套为64位python,所以会出现该问题。我看我本地python为64位版本,但还是安装出现问题(本地cuda版本为12.2,现在paddle版本为2.5.1.post120,现在正常使用可以调用gpu)。在查阅相关资料之后并未解决该安装错误问题,能麻烦问一下这个情况一般都是什么引起的吗?

@luotao1
Copy link
Contributor

luotao1 commented Mar 15, 2024

现在发现第二个错误,在本地更新paddle框架过程中,根据官方提供安装命令出现找不到对应包的情况(问题如图):

是个新问题,可以重新提一个issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/close 已关闭 type/question 用户提问
Projects
None yet
Development

No branches or pull requests

3 participants