-
Notifications
You must be signed in to change notification settings - Fork 274
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
Conversation
|
||
初步实现方案如下: | ||
|
||
1) 检查输入x, 对输入Tensor x做broadcast shape。 |
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.
这儿是什么时候需要broadcast,将谁broadcast成谁。
|
||
1) 检查输入x, 对输入Tensor x做broadcast shape。 | ||
2) 检查是否需要转置(行优先还是列优先)。 | ||
3) 调用paddle cholesky api进行计算。 |
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.
这儿最好写清楚用paddle哪些api进行组合,如何组合。
# 六、测试和验收的考量 | ||
1. 结果正确性: | ||
- 前向计算: `paddle.cholesky_inverse`计算结果与 `torch.cholesky_inverse` 计算结果一致。 | ||
- 反向计算:由 Python 组合新增 API 无需验证反向计算。 |
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.
组合api也需要进行反向测试的验证。
3) 调用paddle cholesky api进行计算。 | ||
4) 检查输出, 存储Tensor。 | ||
|
||
# 六、测试和验收的考量 |
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.
需要写一下测试方案,对一些边界条件的处理。
|
||
# 六、测试和验收的考量 | ||
1. 结果正确性: | ||
- 前向计算: `paddle.cholesky_inverse`计算结果与 `torch.cholesky_inverse` 计算结果一致。 |
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.
框架中测试应该是与numpy去比较,numpy若没有相应函数则需要用numpy进行组合。
PR types
Others
PR changes
Docs
Description
【Hackathon 5th No.29】为 Paddle 新增cholesky_inverse API