[0-size Tensor No.33、35、49、50、74、75、253、263、274、335、361] Add 0-size Tensor support for some API which using split or concat. #72988
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
Execute Infrastructure
PR Types
Improvements
Description
涉及的API:
split和concat互为正反向的关系,因此将这两个kernel修复上述API都可恢复正常。splitkernel很早之前就支持了0-size Tensor,检查之后发现没有问题。
对concat的前向和反向kernel进行了修复,由于concat的输出为0-size Tensor时,输入一定全为0-size Tensor,因此只需考虑判断+return即可,无需考虑初始化过程。
paddleAPITest 回测

pcard-67164