Skip to content

Conversation

@NKNaN
Copy link
Contributor

@NKNaN NKNaN commented Aug 14, 2024

PR Category

User Experience

PR Types

Bug fixes

Description

当 paddle.linalg.lu 输入 x 形状为 [m, n] 时且 get_infos=True,将返回的 info Tensor 从 1-D Tensor 改为 0-D Tensor

@paddle-bot
Copy link

paddle-bot bot commented Aug 14, 2024

你的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.

@paddle-bot paddle-bot bot added the contributor External developers label Aug 14, 2024

auto info_dims = common::slice_ddim(outdims, 0, outrank - 2);
if (info_dims.size() == 0) {
info_dims = common::make_ddim({1});
Copy link
Contributor

Choose a reason for hiding this comment

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

这个需要改成 common::make_ddim({});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

outdims 为 {m,n} 时,outrank=2,common::slice_ddim(outdims, 0, 0) 返回的结果应该就是 common::make_ddim({})


auto info_dims = common::slice_ddim(outdims, 0, outrank - 2);
if (info_dims.size() == 0) {
info_dims = common::make_ddim({1});
Copy link
Contributor

Choose a reason for hiding this comment

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

这个需要改成 common::make_ddim({});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

outdims 为 {m,n} 时,outrank=2,common::slice_ddim(outdims, 0, 0) 返回的结果应该就是 common::make_ddim({})

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010
Copy link
Contributor

看下 映射文档 + Matcher + 单测 这三方面是否有需要对齐修改的

@zhwesky2010 zhwesky2010 merged commit 6643608 into PaddlePaddle:develop Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants