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 和 Tensor.unfold API 不支持对一个数据连续使用 #60672

Closed
Ainavo opened this issue Jan 9, 2024 · 2 comments
Closed
Assignees
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/close 已关闭 type/bug-report 报bug

Comments

@Ainavo
Copy link
Contributor

Ainavo commented Jan 9, 2024

bug描述 Describe the Bug

shape1 = paddle.randn((2, 8, 32, 34, 3)).unfold(3, 3, 1).shape
print(shape1)
shape2 = paddle.randn((2, 8, 32, 34, 3, 3)).unfold(3, 3, 1).shape
print(shape2)
shape3 = paddle.randn((2, 8, 32, 34, 3)).unfold(3, 3, 1).unfold(3, 3, 1).shape

报错如下:
image
image

对比了一下pytorch中的Tensor.unfold,并没有不能连续处理的问题,如下图:
image

其他补充信息 Additional Supplementary Information

No response

@paddle-bot paddle-bot bot added the PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc label Jan 9, 2024
@heavyrain-lzy
Copy link
Contributor

@wanghuancoder 麻烦欢哥给解答一下

@wanghuancoder
Copy link
Contributor

感谢您的问题反馈,这是unfold在支持Stride上的一个bug。我刚刚提了修复PR:
#60684

@paddle-bot paddle-bot bot added status/developing 开发中 and removed status/new-issue 新建 labels Jan 10, 2024
@Ainavo Ainavo closed this as completed Jan 17, 2024
@paddle-bot paddle-bot bot added status/close 已关闭 and removed status/developing 开发中 labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/close 已关闭 type/bug-report 报bug
Projects
None yet
Development

No branches or pull requests

3 participants