-
Notifications
You must be signed in to change notification settings - Fork 89
[WeeklyReport] algorithm1832 2026.01.19~2026.02.01 #534
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
algorithm1832
wants to merge
2
commits into
PFCCLab:main
Choose a base branch
from
algorithm1832:rpt_20260131
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
2 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
81 changes: 81 additions & 0 deletions
81
...yReports/Hackathon_10th/02_algorithm1832/[WeeklyReport]2026.01.19~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,81 @@ | ||
| ### 姓名 | ||
|
|
||
| 杨锃砚 | ||
|
|
||
|
|
||
|
|
||
| ### 实习项目 | ||
|
|
||
| Paddle API兼容性增强 | ||
|
|
||
|
|
||
|
|
||
| ### 本双周工作 | ||
|
|
||
| 1. **torch.std对齐** | ||
|
|
||
| - https://github.com/PaddlePaddle/Paddle/pull/77006 | ||
| - https://github.com/PaddlePaddle/PaConvert/pull/804 | ||
| - https://github.com/PaddlePaddle/PaConvert/pull/813 | ||
| - https://github.com/PaddlePaddle/docs/pull/7680 | ||
| - 状态:CI通过,等待合入 | ||
| - 所属:API兼容性增强任务 | ||
| - 描述: | ||
| - 在PaConvert增强对应的测试用例,补充中文文档修改 | ||
| - 内容详情详见上次双周周报 | ||
|
|
||
| 2. **abs_下沉** | ||
|
|
||
| - https://github.com/PaddlePaddle/Paddle/pull/77294 | ||
| - https://github.com/PaddlePaddle/PaConvert/pull/811 | ||
| - https://github.com/PaddlePaddle/docs/pull/7697 | ||
| - 状态:全部已合入 | ||
| - 所属:API兼容性增强任务、inplace API下沉系列任务 | ||
| - 描述: | ||
| - 在PaConvert增强对应的测试用例,补充中文文档修改 | ||
| - 内容详情详见上次双周周报 | ||
|
|
||
| 3. **`paddle.utils.data.*`对齐** | ||
|
|
||
| - https://github.com/PaddlePaddle/Paddle/pull/77391 | ||
| - https://github.com/PaddlePaddle/Paddle/pull/77446 | ||
| - https://github.com/PaddlePaddle/Paddle/pull/77451 | ||
| - https://github.com/PaddlePaddle/Paddle/pull/77591 | ||
| - https://github.com/PaddlePaddle/PaConvert/pull/817 | ||
| - 状态:CI通过,等待合入 | ||
| - 所属:API兼容性增强任务 | ||
| - 描述: | ||
| - 实现了上个双周的方案,通过`paddle.utils`的按需导入,延后了对应类和方法的导入时机,不会触发循环依赖,同时补充了对应的单测 | ||
| - PaConvert测试过程中发现存在`torch.utils.data.dataloader.default_collate`这个用法,在torch文档里没有写,paddle的API差异文档也没写,但PaConvert做了测试,所以后来加了一下别名 | ||
| - 目前处理了"仅API调用方式不一致"的所有API(10个API) | ||
|
|
||
| 4. **装饰器优化** | ||
|
|
||
| - https://github.com/PaddlePaddle/Paddle/pull/77497 | ||
| - https://github.com/PaddlePaddle/Paddle/pull/77561 | ||
| - 状态:全部已合入,系列任务进行中 | ||
| - 所属:API兼容性增强任务、衍生的杂项任务 | ||
| - 描述: | ||
| - 有些API为了实现兼容性,使用了自己定义的装饰器,后来定义了通用的别名装饰器,自定义装饰器性能会比通用装饰器差一点,所以尽量替换为通用装饰器 | ||
| - 通用装饰器`ParamAliasDecorator`可以处理任意别名情况,但性能较差,将单参数别名和双参数别名的替换为`param_one_alias` 和`param_two_alias`提高性能 | ||
|
|
||
|
|
||
|
|
||
| ### 下双周工作 | ||
|
|
||
| 1. **`paddle.utils.data.*`对齐**的中文文档修改 | ||
| 2. **装饰器优化**进行下一子任务:自定义装饰器代码可读性差,通过overload维护方法签名增强可读性 | ||
| 3. **inplace API下沉系列任务**进行下一子任务:inplace API的`python_api_info.yaml`解析处理(原先逻辑似乎是直接用非inplace版本的配置,不够灵活) | ||
| 4. 继续认领完成其它任务 | ||
|
|
||
|
|
||
|
|
||
| ### 导师点评 | ||
|
|
||
| 杨锃砚同学半个月来积极开展工作,顺利完成了多个API的兼容性增强,同时完成3个API机制优化的工作: | ||
|
|
||
| 1. inplace下沉机制优化 | ||
| 2. `torch.utils.data.*`批量对齐与导入路径设计 | ||
| 3. 装饰器性能与可读性优化 | ||
|
|
||
| API机制优化的工作,相比单个API更有难度,体现出对Paddle代码有了较好理解。后续将上述工作继续收尾,由于机制优化工作更为重要,在日常工作中需优先开展,然后再开展剩余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.
Uh oh!
There was an error while loading. Please reload this page.
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个API机制优化的工作:
torch.utils.data.*批量对齐与导入路径设计API机制优化的工作,相比单个API更有难度,体现出对Paddle代码有了较好理解。后续将上述工作继续收尾,由于机制优化工作更为重要,在日常工作中需优先开展,然后再开展剩余API的对齐。