【Hackathon 9th Sprint No.2】add api compatibility for paddle.autograd.function - part
PR Category
User Experience
PR Types
Others
Description
新增 paddle.autograd.function.* 命名空间,兼容 PyTorch 的 torch.autograd.Function API
python/paddle/autograd/function/__init__.py- 兼容层实现test/legacy_test/test_autograd_function_compatibility.py- 单元测试
PaConvert测试用例部分
| 用例类型 | 测试用例 |
|---|---|
| 相关API在PaConvert中新增/已有的案例 | 新增案例 test_autograd_function_FunctionCtx_save_for_forward.py test_autograd_function_FunctionCtx_mark_shared_storage.py 已有案例 test_autograd_Function.py test_autograd_Function_forward.py test_autograd_Function_backward.py test_autograd_function_FunctionCtx.py test_autograd_function_FunctionCtx_save_for_backward.py test_autograd_function_FunctionCtx_saved_tensors.py test_autograd_function_FunctionCtx_mark_non_differentiable.py test_autograd_function_FunctionCtx_set_materialize_grads.py |
| PaConvert测试未通过案例 | test_autograd_function_FunctionCtx_save_for_backward.py test_autograd_function_FunctionCtx_saved_tensors.py test_autograd_Function.py |
你的PR提交成功,感谢你对开源项目的贡献! 请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。 Your PR has been submitted. Thanks for your contribution! Please wait for the result of CI firstly. See Paddle CI Manual for details.
/re-run all-failed
/re-run all-failed
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:warning: Please upload report for BASE (develop@5fb0786). Learn more about missing BASE report.
Additional details and impacted files
@@ Coverage Diff @@
## develop #76425 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 18
Branches ? 0
===========================================
Hits ? 18
Misses ? 0
Partials ? 0
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
/re-run all-failed
@zade23 这个PR修改后能保证所有的PaConvert中torch.autograd的例子都通过吗,这个是本PR的修改目的。
@zade23 这个PR修改后能保证所有的PaConvert中torch.autograd的例子都通过吗,这个是本PR的修改目的。
我拉最新dev再测试一遍
@zade23 这个PR修改后能保证所有的PaConvert中torch.autograd的例子都通过吗,这个是本PR的修改目的。
我拉最新dev再测试一遍
paconvert测试结论贴到这里面来