Skip to content

Conversation

hd9568
Copy link
Contributor

@hd9568 hd9568 commented Sep 12, 2025

No description provided.

Copy link

paddle-bot bot commented Sep 12, 2025

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

@zhwesky2010 zhwesky2010 changed the title 同步paconvert api,为类别2加上映射文档链接,按照最新分类要求修改 同步paconvert,为类别2加上映射文档链接,重构映射分类 Sep 14, 2025
此类 API 功能和使用方法在 PyTorch 和 PaddlePaddle 中完全一致,只需将 ``torch.`` 替换为 ``paddle.``

## API 完全一致
**分类依据**
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个 分类依据 后面统一改成 分类简介

1. **API 完全一致**:无需映射文档与转写示例。

2. **参数一致但 API 名不一致**无需映射文档与转写示例
2. ** API 调用方式不一致**无需转写示例
Copy link
Collaborator

Choose a reason for hiding this comment

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

调用方式不一致。这个还是需要转写示例的。

参数映射以表格的形式呈现,表格的第 1 列是`PyTorch` 所有参数,第 2 列是`Paddle`对应参数,表格顺序按第 1 列 `PyTorch` 的参数顺序来。

1. **参数与 API 名均一致**:无需映射文档与转写示例。
1. **API 完全一致**:无需映射文档与转写示例。
Copy link
Collaborator

Choose a reason for hiding this comment

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

无需映射文档 就行。


# API 映射关系文档 - 模板

## 分类 2:仅 API 调用方式不一致
Copy link
Collaborator

Choose a reason for hiding this comment

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

上面加一个

## 分类1:API 完全一致
此类API无需编写映射文档。

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
Copy link
Collaborator

zhwesky2010 commented Sep 15, 2025

先合入了。后面注意自行查看预览。

这里几个换行有问题

infoflow 2025-09-15 22-21-58
infoflow 2025-09-15 22-22-27

@zhwesky2010 zhwesky2010 merged commit 872051e into PaddlePaddle:develop Sep 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants