-
Notifications
You must be signed in to change notification settings - Fork 89
[WeeklyReport] Manfredss 2026.01.18~2026.02.01 #539
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
Open
Manfredss
wants to merge
4
commits into
PFCCLab:main
Choose a base branch
from
Manfredss:Manfredss/WeeklyReport
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
WeeklyReports/Hackathon_10th/2_Manfredss/2026.01.18~2026.02.01.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| ### 姓名 | ||
| 戚文斐 | ||
|
|
||
| ### 实习项目 | ||
| Paddle API 兼容性增强 | ||
|
|
||
| ### 本周工作 | ||
| 1. [PR #77300](https://github.com/PaddlePaddle/Paddle/pull/77300) | ||
| paddle.nn.funtional.relu / paddle.nn.functional.leaky_relu / paddle.nn.functional.relu_ / paddle.nn.functional.leaky_relu_ 以及 paddle.relu 对齐, 使用装饰器。PR 已合入 | ||
| 2. [PR #77194](https://github.com/PaddlePaddle/Paddle/pull/77194) paddle.randint 对齐, 使用装饰器。PR 已合入 | ||
| 3. [PR #77078](https://github.com/PaddlePaddle/Paddle/pull/77078) paddle.inverse 对齐, 采用 cpp 下称机制。在对齐过程中发现现有的 api patch 机制存在缺陷,表现为 CI/CE-Framework 测试不通过, 经本地测试确认此缺陷: | ||
| ```bash | ||
| pytest paddletest/framework/api/linalg/test_inv.py # Test Fail | ||
| ``` | ||
| 通过调研发现缺陷存在于代码生成器。改进措施:生成器增强,扩展 monkey_patch_gen.py 以支持通用模块路径。 | ||
| - 新增 `generic_funcs_map` 储存 (`module_path`, `method_name`, `method`) 元组 | ||
| - 修改 `ClassifyAPIByPrefix` 函数将未匹配的 `paddle.*` 前缀纳入通用映射表 | ||
| - 在运行时通过 `getattr()` 动态调用目标模块并设置属性 | ||
|
|
||
| 修改文件:`paddle/fluid/eager/auto_code_generator/generator/monkey_patch_gen.py` | ||
| 结论:未来添加类似路径的 API,如 paddle.fft.* 等时,只要在 yaml 文件中配置即可 | ||
| PR 已合入 | ||
| 4. [PR #77168](https://github.com/PaddlePaddle/Paddle/pull/77168) paddle.deg2rad 对齐,使用装饰器。PR 已合入 | ||
| 5. [PR #77333](https://github.com/PaddlePaddle/Paddle/pull/77333) 新增 paddle.addcmul api,对齐 pytorch 别名,但是现有测试的 coverage test 依然不够标准,有待后续跟进。整体实现已完成,已被 Approved。待 coverage test 完善后最终 review。 | ||
| 6. [PR #77170](https://github.com/PaddlePaddle/Paddle/pull/77170) paddle.lerp 对齐,实验了能否将 `weight` 参数的值的类型改为 `Scalar` 然后采用 cpp 下沉。结论是不可以,因为 `weight` 需要接受多元素,而 `Scalar` 只能接受标量。现在尝试采用 mapper 的方式进行cpp 下沉。在 `paddle/fluid/pybind/args_mapper.cc` 中添加辅助函数 `LerpMapper` 和 `LerpInplaceMapper` 并在 `python_api_info.yaml` 中添加 `Lerp` 和 `LerpInplace` 的参数映射关系。目前在研究 inplace 版本和不是 inplace 版本能否共用一个 Mapper,解决后再进行 review。 | ||
|
|
||
| ### 下周工作 | ||
| 1. 继续 paddle.addcmul 和 paddle.lerp 的收尾工作,争取合并 PR | ||
| 2. 检查上述所有 api 的 paconvert 是否正常,并修改对应的中文文档 | ||
| 3. 有时间认领 paddle.nn.ParameterDict, paddle.nn.functional.pixel_shuffle, paddle.mm 和 paddle.Tensor.tile 这几个 api 的对齐工作。 | ||
|
|
||
| ### 导师点评 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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修改对齐,包括Mapper下沉、完整算子开发、api patcher机制的优化,所完成工作比之前更有难度,体现出对Paddle代码理解程度有很好提高。
后续保持学习工作状态,完成当前工作的收尾,同时可探索一些工程技巧来更好收尾。然后继续开展剩余API对齐,如遇到现有API机制问题可主动探索方案,继续加深对Paddle框架理解程度。