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

【开放任务讨论】PyTorch 与 Paddle 2.0 API 映射表文档补全 #48054

Closed
PommesPeter opened this issue Nov 16, 2022 · 9 comments
Closed
Assignees
Labels
status/discussing 需求调研中 type/new-feature 确认的新需求

Comments

@PommesPeter
Copy link
Contributor

需求描述 Feature Description

任务目标:
完善 PyTorch 1.8 与 Paddle 2.0 API 映射表,补全新增 API

需求场景:

  • 论文复现营
  • paddle 框架使用
  • 代码迁移
  • ....

功能描述:

  • 补全 paddle 新增的 API 对应 PyTorch 的映射
  • 检查之前的文档是否有误

替代实现 Alternatives

No response

@paddle-bot
Copy link

paddle-bot bot commented Nov 16, 2022

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

@Ligoml Ligoml assigned zhwesky2010 and unassigned ZHUI Nov 17, 2022
@Ligoml Ligoml added the status/discussing 需求调研中 label Nov 17, 2022
@paddle-bot paddle-bot bot removed the status/new-issue 新建 label Nov 17, 2022
@zhwesky2010
Copy link
Contributor

zhwesky2010 commented Nov 18, 2022

@PommesPeter 你好,非常欢迎参与这项工作。我们近期也正在梳理这项工作所涉及的全量表,目标是产生Pytorch与Paddle的全量API映射关系数据,预计下一两周会和你讨论你这边需要负责的数据补齐,期待后续合作愉快。

@Ligoml
Copy link
Contributor

Ligoml commented Nov 18, 2022

很好的提议!事实上我们最近也在讨论API转换的事情,前置条件就是要梳理清楚当前的API映射情况,并进行查漏补缺。官网上之前发布过一版 映射表,正如你所说,我们需要:

  • 补全 paddle 新增的 API 对应 PyTorch 的映射
  • 检查之前的文档是否有误

后面会考虑开发一些自动转换工具,也很欢迎你和我们一起做这件事~

其他社区开发者的工作参考:https://github.com/zzz2010/paddorch

@Ligoml Ligoml added the type/new-feature 确认的新需求 label Nov 18, 2022
@paddle-bot paddle-bot bot removed the type/feature-request 新需求申请 label Nov 18, 2022
@PommesPeter
Copy link
Contributor Author

好的

@PommesPeter
Copy link
Contributor Author

很好的提议!事实上我们最近也在讨论API转换的事情,前置条件就是要梳理清楚当前的API映射情况,并进行查漏补缺。官网上之前发布过一版 映射表,正如你所说,我们需要:

  • 补全 paddle 新增的 API 对应 PyTorch 的映射
  • 检查之前的文档是否有误

后面会考虑开发一些自动转换工具,也很欢迎你和我们一起做这件事~

其他社区开发者的工作参考:https://github.com/zzz2010/paddorch

那我现在可以针对目前有的一些问题进行补充吗

@zhwesky2010
Copy link
Contributor

zhwesky2010 commented Nov 28, 2022

@PommesPeter https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/model_convert/pytorch_api_mapping_cn.html#pytorch-1-8-paddle-2-0-api 你好,现在可以先把这168个映射关系检查一遍,然后按这个方式重新标注下:

  • 功能一致,参数一致(包含默认参数),也就是torch参数是paddle的相等或子集,可被paddle完全覆盖
  • 功能一致,torch参数更多(torch多出来的参数,默认下是否一致)
  • 功能一致,但两者参数不一致(不一致的参数及转换关系,默认下是否一致)
  • 功能不一致,写不一致的用法
  • torch独有的API,填paddle无

内容可以提PR到https://github.com/PaddlePaddle/docs里面去

而且我们目前正在梳理其余900+个API,到下周将会有更多API交给你来分析差异,非常感谢来参与这项有价值的工作~

@PommesPeter
Copy link
Contributor Author

@PommesPeter https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/model_convert/pytorch_api_mapping_cn.html#pytorch-1-8-paddle-2-0-api 你好,现在可以先把这168个映射关系检查一遍,然后按这个方式重新标注下:

  • 功能一致,参数一致(包含默认参数),也就是torch参数是paddle的相等或子集,可被paddle完全覆盖
  • 功能一致,torch参数更多(torch多出来的参数,默认下是否一致)
  • 功能一致,但两者参数不一致(不一致的参数及转换关系,默认下是否一致)
  • 功能不一致,写不一致的用法
  • torch独有的API,填paddle无

内容可以提PR到https://github.com/PaddlePaddle/docs里面去

而且我们目前正在梳理其余900+个API,到下周将会有更多API交给你来分析差异,非常感谢来参与这项有价值的工作~

好滴没问题

@PommesPeter
Copy link
Contributor Author

PommesPeter commented Dec 3, 2022

文档修改已提 pr,PaddlePaddle/docs#5484 (已合入)

@PommesPeter
Copy link
Contributor Author

目前还有其他的 API 需要修改吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/discussing 需求调研中 type/new-feature 确认的新需求
Projects
Development

No branches or pull requests

4 participants