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

映射文档 No.76 #5987

Merged
merged 3 commits into from
Jul 19, 2023
Merged

映射文档 No.76 #5987

merged 3 commits into from
Jul 19, 2023

Conversation

Difers
Copy link
Contributor

@Difers Difers commented Jun 28, 2023

PaddlePaddle/PaConvert#112
add torch.cholesky_solve api_difference

@paddle-bot
Copy link

paddle-bot bot commented Jun 28, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5987.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@@ -0,0 +1,23 @@
## [仅 Paddle 参数更多]torch.cholesky_solve

Copy link
Contributor

Choose a reason for hiding this comment

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

仅参数名不一致

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

paddle.linalg.cholesky_solve(x,y,upper=False,name=None)
```

其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下:
Copy link
Contributor

Choose a reason for hiding this comment

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

仅参数名不一致

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

### 参数映射
|PyTorch|PaddlePaddle|备注|
| ------- | ------- | ------- |
|input|x|线性方程中的 B 矩阵|
Copy link
Collaborator

Choose a reason for hiding this comment

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

需要加一句,仅参数名不一致

|PyTorch|PaddlePaddle|备注|
| ------- | ------- | ------- |
|input|x|线性方程中的 B 矩阵|
|input2|y|线性方程中 A 矩阵的 Cholesky 分解矩阵 u,上三角或者下三角矩阵|
Copy link
Collaborator

Choose a reason for hiding this comment

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

需要加一句,仅参数名不一致

|input|x|线性方程中的 B 矩阵|
|input2|y|线性方程中 A 矩阵的 Cholesky 分解矩阵 u,上三角或者下三角矩阵|
|upper|upper|输入 x 是否是上三角矩阵,True 为上三角矩阵,False 为下三角矩阵。默认值 False|
|-|name|一般无需设置,默认值为 None。|
Copy link
Collaborator

Choose a reason for hiding this comment

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

所有的name参数直接忽略,注意对照模板说明

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

| ------- | ------- | ------- |
|input|x|线性方程中的 B 矩阵|
|input2|y|线性方程中 A 矩阵的 Cholesky 分解矩阵 u,上三角或者下三角矩阵|
|upper|upper|输入 x 是否是上三角矩阵,True 为上三角矩阵,False 为下三角矩阵。默认值 False|
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个不用写默认值了,主要写的是两者差异。没有差异简单写下功能就行

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

@zhwesky2010 zhwesky2010 merged commit bc96db2 into PaddlePaddle:develop Jul 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants