Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-78104#1427

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

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

Conversation

@Echo-Nie

Copy link
Copy Markdown
Contributor

关联

说明

  • 新增 SWE-Paddle 任务 PaddlePaddle__Paddle-78104

验证结果

状态 Existing behavior P2P Generic core.Place F2P
Base + tests/test.patch PASS FAIL,符合预期
Base + test patch + solution/code.patch PASS PASS

Base P2P:Existing Place conversion behavior

.                                                                        [100%]
1 passed in 0.28s
Base existing P2P exit code: 0

Base F2P:Generic core.Place conversion

F                                                                        [100%]
================================== FAILURES ===================================
_______________ test_generic_place_preserves_device_type_and_id _______________

    def test_generic_place_preserves_device_type_and_id():
        function = _load_checkout_function()

        cpu = function(_Place('cpu'))
        gpu = function(_Place('gpu', device_id=3))
        xpu = function(_Place('xpu', device_id=4))
        custom = function(
            _Place('custom', device_id=5, device_type='custom_accel')
        )

>       assert isinstance(cpu, _CPUPlace)
E       assert False
E        +  where False = isinstance(<legacy_test.test_device_place_conversion_contract._Place object at 0x000001B5C8D76C50>, _CPUPlace)

test\legacy_test\test_device_place_conversion_contract.py:146: AssertionError
=========================== short test summary info ===========================
FAILED test/legacy_test/test_device_place_conversion_contract.py::test_generic_place_preserves_device_type_and_id
1 failed in 0.30s
Base generic-Place F2P exit code: 1

Solution 测试

Solution existing behavior P2P:
1 passed in 0.25s

Solution generic core.Place F2P:
1 passed in 0.27s

tests/test.sh

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

@sunzhongkai588

@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