Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-56470#1434

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

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

Conversation

@Echo-Nie

@Echo-Nie Echo-Nie commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

关联

说明

  • 新增 SWE-Paddle 任务 PaddlePaddle__Paddle-56470
  • swe-bench类型:api_enhanced

@sunzhongkai588

验证结果

状态 Existing sequence/scale-factor P2P Nearest2D single-int F2P Bilinear2D single-int F2P
Base + tests/test.patch PASS FAIL,符合预期 FAIL,符合预期
Base + test patch + solution/code.patch PASS PASS PASS

Base P2P:Existing sequence and scale-factor behavior

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

Base F2P:UpsamplingNearest2D accepts a single integer size

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

    def test_nearest_2d_accepts_single_integer_size():
        nearest_cls, _ = _load_checkout_classes()
        layer = nearest_cls(size=7)
        call = layer.forward(object())

>       assert layer.size == [7, 7]
E       assert 7 == [7, 7]
E        +  where 7 = <UpsamplingNearest2D object at 0x00000282721FA250>.size

test\swe_paddle\test_pr56470_upsampling_single_int.py:74: AssertionError
=========================== short test summary info ===========================
FAILED test/swe_paddle/test_pr56470_upsampling_single_int.py::test_nearest_2d_accepts_single_integer_size
1 failed in 0.25s
Base Nearest2D single-int F2P exit code: 1

Base F2P:UpsamplingBilinear2D accepts a single integer size

F                                                                        [100%]
================================== FAILURES ===================================
________________ test_bilinear_2d_accepts_single_integer_size _________________

    def test_bilinear_2d_accepts_single_integer_size():
        _, bilinear_cls = _load_checkout_classes()
        layer = bilinear_cls(size=9)
        call = layer.forward(object())

>       assert layer.size == [9, 9]
E       assert 9 == [9, 9]
E        +  where 9 = <UpsamplingBilinear2D object at 0x000001AEF23BA250>.size

test\swe_paddle\test_pr56470_upsampling_single_int.py:84: AssertionError
=========================== short test summary info ===========================
FAILED test/swe_paddle/test_pr56470_upsampling_single_int.py::test_bilinear_2d_accepts_single_integer_size
1 failed in 0.13s
Base Bilinear2D single-int F2P exit code: 1

Solution 测试

Solution existing behavior P2P:
1 passed in 0.03s

Solution Nearest2D single-int F2P:
1 passed in 0.03s

Solution Bilinear2D single-int F2P:
1 passed in 0.03s

tests/test.sh

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

@paddle-bot

paddle-bot Bot commented Jul 22, 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