Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-73880 - #1527

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

[SWE-Paddle] Add task PaddlePaddle__Paddle-73880#1527
co63oc wants to merge 1 commit into
PaddlePaddle:masterfrom
co63oc:pr73880

Conversation

@co63oc

@co63oc co63oc commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

关联

说明

新增 SWE-Paddle 任务 PaddlePaddle__Paddle-73880

该任务覆盖 paddle.nn.functional.softmax_with_cross_entropy 对 0-size Tensor 的处理。测试包含非 0-size Tensor regression case,以及 softmax_with_cross_entropy 的目标场景,可在 CPU 环境运行。

验证结果

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

Base P2P

2 passed, 4 warnings in 1.79s

Base F2P:softmax_with_cross_entropy

FAILED test/legacy_test/test_softmax_with_cross_entropy_op.py::TestSoftmaxWithCrossEntropyOp_ZeroSize::test_check_grad - ValueError: In user code:
FAILED test/legacy_test/test_softmax_with_cross_entropy_op.py::TestSoftmaxWithCrossEntropyOp_ZeroSize::test_check_output - ValueError: In user code:
2 failed, 1 warning in 1.77s
FAILED test/legacy_test/test_softmax_with_cross_entropy_op.py::TestSoftmaxWithCrossEntropyOp_ZeroSize2::test_check_grad - ValueError: In user code:
FAILED test/legacy_test/test_softmax_with_cross_entropy_op.py::TestSoftmaxWithCrossEntropyOp_ZeroSize2::test_check_output - ValueError: In user code:
2 failed, 1 warning in 1.81s

Solution P2P

2 passed, 4 warnings in 1.80s

Solution F2P:softmax_with_cross_entropy

2 passed, 4 warnings in 1.29s
2 passed, 4 warnings in 1.36s

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