[Operator Mechanism] Remove unbind int32 element limit - #79737
Merged
zhengshengning merged 2 commits intoSep 10, 2026
Merged
zhengshengning merged 2 commits into
zhengshengning merged 2 commits into
Conversation
… normal un-strided path
Contributor
Author
|
/re-run all-failed |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #79737 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 1
Branches ? 0
===========================================
Hits ? 1
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
|
/re-run all-failed |
1 similar comment
Contributor
Author
|
/re-run all-failed |
wanghuancoder
approved these changes
Sep 9, 2026
zhengshengning
merged commit Sep 10, 2026
71b2f32
into
PaddlePaddle:develop
223 of 240 checks passed
omoYang
added a commit
to omoYang/Paddle_fork
that referenced
this pull request
Sep 15, 2026
Backport the SplitFunctor<CPUContext> int->int64_t narrowing fix from PaddlePaddle#79246 so unbind/split on CPU no longer overflows when a per-output column count exceeds INT_MAX (e.g. unbind([2, 2^31], axis=0) via the non-strided path). Pairs with PaddlePaddle#79737 which removed the numel<=INT_MAX guard.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Category
Operator Mechanism
PR Types
Bug fixes
Description
修复
unbind对输入 Tensor 总元素数超过2^31 - 1时被错误拦截的问题。当前
unbind的常规GPU路径和stride 路径均存在针对x.numel()的INT_MAX限制,导致大规模MoE Tensor在执行unbind时直接报错。相关实现后续已经支持根据数据规模选择int64_t索引路径,因此移除两处不再必要的元素数量检查:paddle/phi/kernels/impl/unbind_kernel_impl.hpaddle/phi/kernels/stride/unbind_kernel.cc是否引起精度变化
否