Skip to content

[0-size Tensor No.31、293] Add 0-size Tensor support for chunk - #73616

Merged
DanielSun11 merged 10 commits into
PaddlePaddle:developfrom
enkilee:0size-chunk
Jul 10, 2025
Merged

DanielSun11 merged 10 commits into
PaddlePaddle:developfrom
enkilee:0size-chunk

Conversation

@enkilee

@enkilee enkilee commented Jun 25, 2025

Copy link
Copy Markdown
Collaborator

PR Category

Execute Infrastructure

PR Types

Improvements

Description

PaddleAPITest 测试没问题,故只增加单测。

[1/122] Testing paddle.Tensor.chunk(Tensor([0, 1, 1, 4],"float32"), 4, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1, 1, 4],"float32"), 4, axis=-1, )
[2/122] Testing paddle.Tensor.chunk(Tensor([0, 1, 10164, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1, 10164, 2],"float32"), 2, axis=-1, )
[3/122] Testing paddle.Tensor.chunk(Tensor([0, 1, 10285, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1, 10285, 2],"float32"), 2, axis=-1, )
[4/122] Testing paddle.Tensor.chunk(Tensor([0, 1, 11109, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1, 11109, 2],"float32"), 2, axis=-1, )
[5/122] Testing paddle.Tensor.chunk(Tensor([0, 1, 12096, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1, 12096, 2],"float32"), 2, axis=-1, )
[6/122] Testing paddle.Tensor.chunk(Tensor([0, 1, 1360, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1, 1360, 2],"float32"), 2, axis=-1, )
[7/122] Testing paddle.Tensor.chunk(Tensor([0, 1, 2048],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1, 2048],"float32"), 2, axis=-1, )
[8/122] Testing paddle.Tensor.chunk(Tensor([0, 10, 1, 4],"float32"), 4, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 10, 1, 4],"float32"), 4, axis=-1, )
[9/122] Testing paddle.Tensor.chunk(Tensor([0, 10, 2048],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 10, 2048],"float32"), 2, axis=-1, )
[10/122] Testing paddle.Tensor.chunk(Tensor([0, 100, 2048],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 100, 2048],"float32"), 2, axis=-1, )
[11/122] Testing paddle.Tensor.chunk(Tensor([0, 101, 1, 4],"float32"), 4, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 101, 1, 4],"float32"), 4, axis=-1, )
[12/122] Testing paddle.Tensor.chunk(Tensor([0, 101, 2048],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 101, 2048],"float32"), 2, axis=-1, )
[13/122] Testing paddle.Tensor.chunk(Tensor([0, 102, 1, 4],"float32"), 4, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 102, 1, 4],"float32"), 4, axis=-1, )
[14/122] Testing paddle.Tensor.chunk(Tensor([0, 102, 2048],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 102, 2048],"float32"), 2, axis=-1, )
[15/122] Testing paddle.Tensor.chunk(Tensor([0, 103, 1, 4],"float32"), 4, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 103, 1, 4],"float32"), 4, axis=-1, )
[16/122] Testing paddle.Tensor.chunk(Tensor([0, 128, 1007],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 128, 1007],"float32"), 2, axis=1, )
[17/122] Testing paddle.Tensor.chunk(Tensor([0, 128, 10],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 128, 10],"float32"), 2, axis=1, )
[18/122] Testing paddle.Tensor.chunk(Tensor([0, 128, 3],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 128, 3],"float32"), 2, axis=1, )
[19/122] Testing paddle.Tensor.chunk(Tensor([0, 128, 7],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 128, 7],"float32"), 2, axis=1, )
[20/122] Testing paddle.Tensor.chunk(Tensor([0, 1444, 2, 2],"float32"), chunks=2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 1444, 2, 2],"float32"), chunks=2, axis=1, )
[21/122] Testing paddle.Tensor.chunk(Tensor([0, 160, 16, 12],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 160, 16, 12],"float32"), 2, axis=1, )
[22/122] Testing paddle.Tensor.chunk(Tensor([0, 160, 8, 6],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 160, 8, 6],"float32"), 2, axis=1, )
[23/122] Testing paddle.Tensor.chunk(Tensor([0, 196, 768],"float32"), 3, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 196, 768],"float32"), 3, axis=-1, )
[24/122] Testing paddle.Tensor.chunk(Tensor([0, 300, 101],"float32"), 16, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 300, 101],"float32"), 16, )
[25/122] Testing paddle.Tensor.chunk(Tensor([0, 3136, 192],"float32"), 3, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 3136, 192],"float32"), 3, axis=-1, )
[26/122] Testing paddle.Tensor.chunk(Tensor([0, 32, 128, 96],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 32, 128, 96],"float32"), 2, axis=1, )
[27/122] Testing paddle.Tensor.chunk(Tensor([0, 32, 64, 48],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 32, 64, 48],"float32"), 2, axis=1, )
[28/122] Testing paddle.Tensor.chunk(Tensor([0, 320, 4, 3],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 320, 4, 3],"float32"), 2, axis=1, )
[29/122] Testing paddle.Tensor.chunk(Tensor([0, 36, 3, 3],"float32"), chunks=2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 36, 3, 3],"float32"), chunks=2, axis=1, )
[30/122] Testing paddle.Tensor.chunk(Tensor([0, 38, 20],"float32"), chunks=2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 38, 20],"float32"), chunks=2, axis=-1, )
[31/122] Testing paddle.Tensor.chunk(Tensor([0, 49, 1536],"float32"), 3, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 49, 1536],"float32"), 3, axis=-1, )
[32/122] Testing paddle.Tensor.chunk(Tensor([0, 4],"float32"), 2, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 4],"float32"), 2, axis=1, )
[33/122] Testing paddle.Tensor.chunk(Tensor([0, 784, 384],"float32"), 3, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 784, 384],"float32"), 3, axis=-1, )
[34/122] Testing paddle.Tensor.chunk(Tensor([0, 8, 32],"float32"), 8, axis=1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 8, 32],"float32"), 8, axis=1, )
[35/122] Testing paddle.Tensor.chunk(Tensor([0, 9, 10],"float32"), chunks=2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([0, 9, 10],"float32"), chunks=2, axis=-1, )
[36/122] Testing paddle.Tensor.chunk(Tensor([1, 0, 1, 4],"float32"), 4, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([1, 0, 1, 4],"float32"), 4, axis=-1, )
[37/122] Testing paddle.Tensor.chunk(Tensor([1, 0, 10164, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([1, 0, 10164, 2],"float32"), 2, axis=-1, )
[38/122] Testing paddle.Tensor.chunk(Tensor([1, 0, 10285, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([1, 0, 10285, 2],"float32"), 2, axis=-1, )
[39/122] Testing paddle.Tensor.chunk(Tensor([1, 0, 11109, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([1, 0, 11109, 2],"float32"), 2, axis=-1, )
[40/122] Testing paddle.Tensor.chunk(Tensor([1, 0, 12096, 2],"float32"), 2, axis=-1, )
[info] Test case succeeded for paddle.Tensor.chunk(Tensor([1, 0, 12096, 2],"float32"), 2, axis=-1, )

@paddle-bot paddle-bot Bot added the contributor External developers label Jun 25, 2025
@enkilee

enkilee commented Jun 26, 2025

Copy link
Copy Markdown
Collaborator Author

/re-run all-failed

@enkilee

enkilee commented Jul 4, 2025

Copy link
Copy Markdown
Collaborator Author

/re-run all-failed

2 similar comments
@enkilee

enkilee commented Jul 7, 2025

Copy link
Copy Markdown
Collaborator Author

/re-run all-failed

@enkilee

enkilee commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator Author

/re-run all-failed

@DanielSun11 DanielSun11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DanielSun11
DanielSun11 merged commit 2255259 into PaddlePaddle:develop Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants