-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[API] paddle.slogdet
返回值规范化
#72505
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
base: develop
Are you sure you want to change the base?
[API] paddle.slogdet
返回值规范化
#72505
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
符号推导部分可以参考这个#66444 ,写一下测试过覆盖率测试 |
def test_check_output(self):
self.check_output(check_pir=True) < --- check_symbol_infer 默认为true |
好的好的 |
Sorry to inform you that 6900484's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
/re-run all-failed |
/re-run distribute build |
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (72.22%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #72505 +/- ##
==========================================
Coverage ? 72.22%
==========================================
Files ? 6
Lines ? 72
Branches ? 0
==========================================
Hits ? 52
Misses ? 20
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/re-run all-failed |
@aquagull 麻烦合入一下最新的上游代码吧,好像CINN这个有点问题 |
paddle/phi/ops/yaml/op_compat.yaml
Outdated
@@ -3517,7 +3517,7 @@ | |||
inputs : | |||
x : Input | |||
outputs : | |||
out : Out | |||
{sign: Sign, logdet: Logdet} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out的命名不能更改了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out的命名不能更改了
已修改, Sign -> Out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for attr
rename Sign to Out for compatibility
PR Category
User Experience
PR Types
Bug fixes
Description
接口变更说明
paddle.linalg.slogdet
的返回值结构已更新,与 PyTorch、NumPy对齐:[2, *]
的堆叠 Tensor(索引 0: sign, 索引 1: logdet)
(sign, logdet)
两个独立 Tensor参考标准:https://data-apis.org/array-api/latest/extensions/generated/array_api.linalg.slogdet.html#slogdet
不兼容变更说明
必须修改组网代码:新版本并且使用patch后,无法按照原有逻辑fetch到两个tensor。
add_output
适用于新增一个不使用的输出,因为接下来的op fetch的还是原来的那个输出,因此不会影响到program。paddle3.0.0 的program为:

patch后的program为:

cn文档pr:
Pcard-75624