[Zero-Dim] add 0D output support for linalg.slogdet by GGBond8488 · Pull Request #52891 · PaddlePaddle/Paddle

@GGBond8488

PR types

Others

PR changes

Others

Describe

add 0D output support for inalg.slogdet
Pcard-66984

@GGBond8488

@paddle-bot

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@GGBond8488

@GGBond8488 GGBond8488 changed the title 【0D output】add 0D output support for inalg.slogdet 【0D output】add 0D output support for linalg.slogdet

Apr 16, 2023

@GGBond8488

zhwesky2010

# 2-D input
x = paddle.randn([3, 3])
x.stop_gradient = False
out = paddle.linalg.slogdet(x)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个需要append_backward才有反向,fetch一下x.grad_name试下

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加了静态图反向测试

@GGBond8488

zhwesky2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

jjyaoao pushed a commit to jjyaoao/Paddle that referenced this pull request

Apr 19, 2023
* add 0D output support for inalg.slogdet,test=allcase

* fix zerom dime test error test=allcase

* fix test error test=allcase

* add static backward test, test=allcase

@zhwesky2010 zhwesky2010 changed the title 【0D output】add 0D output support for linalg.slogdet [Zero-Dim] add 0D output support for linalg.slogdet

May 8, 2023