-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Prim] Add index_add_grad for static decomposition
#73737
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
[Prim] Add index_add_grad for static decomposition
#73737
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
index_add_grad for static compositionindex_add_grad for static decomposition
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #73737 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 2
Branches ? 0
===========================================
Hits ? 2
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
support running `input_torch_dynamic.json` with paddle backend(including CINN) TODO list: - [x] PaddlePaddle/Paddle#73601 - [x] PaddlePaddle/Paddle#73622 - [x] PaddlePaddle/Paddle#73737 - [x] PaddlePaddle/Paddle#73747 - [x] PaddlePaddle/Paddle#73809 - [x] PaddlePaddle/Paddle#73761 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit * **Bug Fixes** * Resolved issues with tensor shape and indexing consistency, preventing assertion errors during model execution. * Improved handling of default tensor initialization to avoid JIT assertion issues. * **Refactor** * Standardized tensor dimension handling and broadcasting for improved clarity and maintainability. * Enhanced code readability with clearer indexing conventions and formatting. * Updated aggregation logic for safer and more efficient tensor operations. * **New Features** * Added an option to control graph index mapping behavior for greater flexibility in advanced use cases. * **Tests** * Introduced comprehensive tests validating descriptor model consistency with dynamic selection enabled. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
support running `input_torch_dynamic.json` with paddle backend(including CINN) TODO list: - [x] PaddlePaddle/Paddle#73601 - [x] PaddlePaddle/Paddle#73622 - [x] PaddlePaddle/Paddle#73737 - [x] PaddlePaddle/Paddle#73747 - [x] PaddlePaddle/Paddle#73809 - [x] PaddlePaddle/Paddle#73761 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit * **Bug Fixes** * Resolved issues with tensor shape and indexing consistency, preventing assertion errors during model execution. * Improved handling of default tensor initialization to avoid JIT assertion issues. * **Refactor** * Standardized tensor dimension handling and broadcasting for improved clarity and maintainability. * Enhanced code readability with clearer indexing conventions and formatting. * Updated aggregation logic for safer and more efficient tensor operations. * **New Features** * Added an option to control graph index mapping behavior for greater flexibility in advanced use cases. * **Tests** * Introduced comprehensive tests validating descriptor model consistency with dynamic selection enabled. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PR Category
Operator Mechanism
PR Types
New features
Description
Pcard-75624
index_add_grad静态图组合实现,修改对应单测,将x添加到no_need_buffer中,避免hold不必要的中间变量动态shape条件下的精度测试