Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-54625#1429

Open
Echo-Nie wants to merge 1 commit into
PaddlePaddle:masterfrom
Echo-Nie:54625
Open

[SWE-Paddle] Add task PaddlePaddle__Paddle-54625#1429
Echo-Nie wants to merge 1 commit into
PaddlePaddle:masterfrom
Echo-Nie:54625

Conversation

@Echo-Nie

Copy link
Copy Markdown
Contributor

关联

说明

  • 新增 SWE-Paddle 任务 PaddlePaddle__Paddle-54625

@sunzhongkai588

验证结果

状态 Existing output release P2P Uninitialized output F2P In-place modified output F2P
Base + tests/test.patch PASS FAIL,符合预期 FAIL,符合预期
Base + test patch + solution/code.patch PASS PASS PASS

Base P2P

.                                                                        [100%]
1 passed in 0.03s

Base F2P:未初始化输出不应被释放

F                                                                        [100%]
================================== FAILURES ===================================
_________________ test_uninitialized_outputs_are_not_released _________________

    def test_uninitialized_outputs_are_not_released():
        function = _load_checkout_function()
        single = _Tensor(initialized=False)
        sequence_item = _Tensor(initialized=False)

        function(object(), single)
        function(object(), [sequence_item])

>       assert single.clear_calls == 0
E       assert 1 == 0
E        +  where 1 = <test_pr54625_pipeline_output_release._Tensor object at 0x000001F3030C9D10>.clear_calls

FAILED test/swe_paddle/test_pr54625_pipeline_output_release.py::test_uninitialized_outputs_are_not_released
1 failed in 0.08s

Base F2P:发生 in-place 修改的输出不应被释放

F                                                                        [100%]
================================== FAILURES ===================================
_______________ test_inplace_modified_outputs_are_not_released ________________

    def test_inplace_modified_outputs_are_not_released():
        function = _load_checkout_function()
        single = _Tensor(inplace_version=1)
        sequence_item = _Tensor(inplace_version=3)

        function(object(), single)
        function(object(), (sequence_item,))

>       assert single.clear_calls == 0
E       assert 1 == 0
E        +  where 1 = <test_pr54625_pipeline_output_release._Tensor object at 0x0000026389676C50>.clear_calls

FAILED test/swe_paddle/test_pr54625_pipeline_output_release.py::test_inplace_modified_outputs_are_not_released
1 failed in 0.10s

Solution 测试

Solution existing output-release P2P:
1 passed in 0.02s

Solution uninitialized-output F2P:
1 passed in 0.02s

Solution in-place-modified-output F2P:
1 passed in 0.02s

tests/test.sh

...                                                                      [100%]
3 passed in 0.03s
Solution tests/test.sh exit code: 0

@paddle-bot

paddle-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

你的PR提交成功,感谢你对开源项目的贡献!
请检查PR提交格式和内容是否完备,具体请参考示例模版
Your PR has been submitted. Thanks for your contribution!
Please check its format and content. For this, you can refer to Template and Demo.

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