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 的 dist 算子在动态图模式下无法进行求导 #53213

Closed
yangguohao opened this issue Apr 23, 2023 · 2 comments
Closed

Paddle 的 dist 算子在动态图模式下无法进行求导 #53213

yangguohao opened this issue Apr 23, 2023 · 2 comments
Assignees
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/close 已关闭 type/bug-report 报bug

Comments

@yangguohao
Copy link
Contributor

bug描述 Describe the Bug

x_shape = (2, 2, 3, 2)
y_shape = (1, 1, 3, 1)
p = 2
x_paddle = paddle.rand(shape=x_shape)
y_paddle = paddle.rand(shape=y_shape)
x_paddle.stop_gradient = False
z = paddle.dist(x_paddle, y_paddle, p)
z.backward()

以上这段代码在动态图模式下运行,显示 Process finished with exit code -1073741819 (0xC0000005),在 AIStudio 上 kernel 直接挂掉。使用的是飞桨 2.4 版本。

其他补充信息 Additional Supplementary Information

No response

@Bobholamovic
Copy link
Member

你好,我注意到当同时指定y_paddle.stop_gradient = False时,程序可以跑通。不过,只有x_paddle需要梯度时程序无法跑通,看起来是一个bug,我们的相关同学正在排查中~

@yangguohao
Copy link
Contributor Author

yangguohao commented Apr 23, 2023

好的,感谢回复.

@paddle-bot paddle-bot bot added PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/testing and removed status/following-up 跟进中 labels Apr 23, 2023
@ZHUI ZHUI closed this as completed Apr 28, 2023
@paddle-bot paddle-bot bot added status/close 已关闭 and removed status/testing labels Apr 28, 2023
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