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

【Hackathon 5th No.29】为 Paddle 新增 cholesky_inverse API #686

Closed
wants to merge 1 commit into from

Conversation

jlxjiang
Copy link

@jlxjiang jlxjiang commented Oct 8, 2023

PR types
Others

PR changes
Docs

Description
【Hackathon 5th No.29】为 Paddle 新增cholesky_inverse API

@paddle-bot
Copy link

paddle-bot bot commented Oct 8, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请检查PR提交格式和内容是否完备,具体请参考示例模版
Your PR has been submitted. Thanks for your contribution!
Please check its format and content. For this, you can refer to Template and Demo.

@CLAassistant
Copy link

CLAassistant commented Oct 8, 2023

CLA assistant check
All committers have signed the CLA.


初步实现方案如下:

1) 检查输入x, 对输入Tensor x做broadcast shape。

Choose a reason for hiding this comment

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

这儿是什么时候需要broadcast,将谁broadcast成谁。


1) 检查输入x, 对输入Tensor x做broadcast shape。
2) 检查是否需要转置(行优先还是列优先)。
3) 调用paddle cholesky api进行计算。

Choose a reason for hiding this comment

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

这儿最好写清楚用paddle哪些api进行组合,如何组合。

# 六、测试和验收的考量
1. 结果正确性:
- 前向计算: `paddle.cholesky_inverse`计算结果与 `torch.cholesky_inverse` 计算结果一致。
- 反向计算:由 Python 组合新增 API 无需验证反向计算。

Choose a reason for hiding this comment

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

组合api也需要进行反向测试的验证。

3) 调用paddle cholesky api进行计算。
4) 检查输出, 存储Tensor。

# 六、测试和验收的考量

Choose a reason for hiding this comment

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

需要写一下测试方案,对一些边界条件的处理。


# 六、测试和验收的考量
1. 结果正确性:
- 前向计算: `paddle.cholesky_inverse`计算结果与 `torch.cholesky_inverse` 计算结果一致。

Choose a reason for hiding this comment

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

框架中测试应该是与numpy去比较,numpy若没有相应函数则需要用numpy进行组合。

@luotao1 luotao1 closed this Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants