Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-73821 - #1519

Open
co63oc wants to merge 1 commit into
PaddlePaddle:masterfrom
co63oc:pr73821
Open

[SWE-Paddle] Add task PaddlePaddle__Paddle-73821#1519
co63oc wants to merge 1 commit into
PaddlePaddle:masterfrom
co63oc:pr73821

Conversation

@co63oc

@co63oc co63oc commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

关联

说明

新增 SWE-Paddle 任务 PaddlePaddle__Paddle-73821

该任务覆盖 paddle.nn.functional.pad 及其底层 C++ kernel(CPU/GPU/XPU)对 0-size Tensor 的处理。测试包含已有 pad regression case,以及 0-size tensor 的目标场景,可在 CPU 环境运行。

验证结果

状态 P2P pad F2P
Base + tests/test.patch PASS FAIL
Base + test patch + solution/code.patch PASS PASS

Base P2P

2 passed, 2 warnings in 1.53s

Base F2P

FAILED test/legacy_test/test_pad_op.py::TestPadOp_ZeroSize2::test_dygraph - ValueError: (InvalidArgument) The data_type of input tensor in list isn't consistent, the first tensor is i...
1 failed, 1 warning in 1.45s
FAILED test/legacy_test/test_pad3d_op.py::TestPad3dOp_ZeroSize_Circular::test_circular_0size - ValueError: (InvalidArgument) The input tensor size can not be 0 for circular or replicate padding mode.
1 failed, 1 warning in 1.43s
FAILED test/legacy_test/test_pad3d_op.py::TestPad3dOp_ZeroSize_Replicate::test_replicate_0size - ValueError: (InvalidArgument) The input tensor size can not be 0 for circular or replicate padding mode.
1 failed, 1 warning in 1.39s

Solution P2P

2 passed, 2 warnings in 1.55s

Solution F2P

1 passed, 1 warning in 1.21s
1 passed, 1 warning in 1.23s
1 passed, 1 warning in 1.23s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant