Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle-79310 - #1446

Open
Echo-Nie wants to merge 3 commits into
PaddlePaddle:masterfrom
Echo-Nie:79310
Open

[SWE-Paddle] Add task PaddlePaddle__Paddle-79310#1446
Echo-Nie wants to merge 3 commits into
PaddlePaddle:masterfrom
Echo-Nie:79310

Conversation

@Echo-Nie

Copy link
Copy Markdown
Contributor

关联

说明

  • 新增 SWE-Paddle 任务 PaddlePaddle__Paddle-79310

@sunzhongkai588

验证结果

状态 Existing static-path P2P Dynamic in-place return F2P eye_ return F2P sparse_ behavior F2P sparse_ validation F2P
Base + tests/test.patch PASS FAIL,符合预期 FAIL,符合预期 FAIL,符合预期 FAIL,符合预期
Base + test patch + solution/code.patch PASS PASS PASS PASS PASS

Base P2P:Existing non-dygraph initializer behavior

.                                                                        [100%]
1 passed in 0.04s
Base existing static-path P2P exit code: 0

Base F2P:Dynamic in-place initializer helpers return the input Tensor

F                                                                        [100%]
================================== FAILURES ===================================
________ test_dygraph_inplace_initializer_helpers_return_input_tensor _________

    def test_dygraph_inplace_initializer_helpers_return_input_tensor():
        cases = [
            ("kaiming_uniform_", (), {}),
            ("kaiming_normal_", (), {}),
            ("xavier_uniform_", (), {}),
            ("xavier_normal_", (), {}),
            ("uniform_", (), {}),
            ("normal_", (), {}),
            ("trunc_normal_", (), {}),
            ("constant_", (), {"val": 3.0}),
            ("ones_", (), {}),
            ("zeros_", (), {}),
            ("dirac_", (), {}),
            ("orthogonal_", (), {}),
        ]

        ...

>           assert result is tensor, name
E           AssertionError: kaiming_uniform_

FAILED test/swe_paddle/test_pr79310_sparse_initializer.py::test_dygraph_inplace_initializer_helpers_return_input_tensor
1 failed in 0.72s
Base dynamic in-place-return F2P exit code: 1

Base F2P:eye_ returns the input Tensor after in-place sharing

F                                                                        [100%]
================================== FAILURES ===================================
__________ test_eye_dygraph_returns_input_tensor_after_inplace_share __________

    result = function(tensor)

>   assert result is tensor
E   assert None is <test_pr79310_sparse_initializer._Tensor object at ...>

FAILED test/swe_paddle/test_pr79310_sparse_initializer.py::test_eye_dygraph_returns_input_tensor_after_inplace_share
1 failed in 0.58s
Base eye-return F2P exit code: 1

Base F2P:sparse_ zeros the required fraction in every column

F                                                                        [100%]
================================== FAILURES ===================================
_________ test_sparse_initializer_zeros_ceil_fraction_in_every_column _________

>       function, paddle, normal_calls = _load_sparse_function()

E       StopIteration

FAILED test/swe_paddle/test_pr79310_sparse_initializer.py::test_sparse_initializer_zeros_ceil_fraction_in_every_column
1 failed in 0.55s
Base sparse-initializer F2P exit code: 1

Base F2P:sparse_ rejects non-2D tensors

F                                                                        [100%]
================================== FAILURES ===================================
________________ test_sparse_initializer_rejects_non_2d_tensor ________________

>       function, paddle, normal_calls = _load_sparse_function()

E       StopIteration

FAILED test/swe_paddle/test_pr79310_sparse_initializer.py::test_sparse_initializer_rejects_non_2d_tensor
1 failed in 0.62s
Base sparse-validation F2P exit code: 1

Solution 测试

Solution existing static-path P2P:
1 passed in 0.03s

Solution dynamic in-place-return F2P:
1 passed in 0.04s

Solution eye-return F2P:
1 passed in 0.03s

Solution sparse-initializer F2P:
1 passed in 0.03s

Solution sparse-validation F2P:
1 passed in 0.02s

tests/test.sh

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

@paddle-bot

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