Skip to content

[SWE-Paddle] Add task PaddlePaddle__Paddle_74444 - #1457

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

[SWE-Paddle] Add task PaddlePaddle__Paddle_74444#1457
Echo-Nie wants to merge 3 commits into
PaddlePaddle:masterfrom
Echo-Nie:74444

Conversation

@Echo-Nie

Copy link
Copy Markdown
Contributor

关联

说明

  • 新增 SWE-Paddle 任务 PaddlePaddle__Paddle-74444

@sunzhongkai588

验证结果

状态 Existing dropout2d P2P dropout1d semantics F2P Validation F2P
Base + tests/test.patch PASS FAIL,符合预期 FAIL,符合预期
Base + test patch + solution/code.patch PASS PASS PASS

Base:

P2P: 1 passed
F2P: 2 failed, 1 passed
tests/test.sh exit code: 1

Solution:

P2P: PASS
F2P: PASS
Full target test: 3 passed in 0.07s
tests/test.sh: 3 passed in 0.07s
Solution blob match: 0


Paddle 目前没有 `paddle.nn.functional.dropout1d`。对于 `[C, L]` 或 `[N, C, L]` 形状的输入,用户无法直接按通道执行 dropout。

新增该接口后,训练时以概率 `p` 将整个通道置零,而不是随机对通道中的单个元素置零。输出 shape 应与输入保持一致;`training=False` 时不执行 dropout。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

训练时以概率 p 将整个通道置零,而不是随机对通道中的单个元素置零

这句话有点绕吧?看原 PR 的描述图片里说的更清晰一点

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为这个是dropout1d,默认和dropout对比的,把默认行为加进去对比一下就好,改好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants