[SWE-Paddle] Add task PaddlePaddle__Paddle_74444 - #1457
Open
Echo-Nie wants to merge 3 commits into
Open
Conversation
|
|
||
| Paddle 目前没有 `paddle.nn.functional.dropout1d`。对于 `[C, L]` 或 `[N, C, L]` 形状的输入,用户无法直接按通道执行 dropout。 | ||
|
|
||
| 新增该接口后,训练时以概率 `p` 将整个通道置零,而不是随机对通道中的单个元素置零。输出 shape 应与输入保持一致;`training=False` 时不执行 dropout。 |
Contributor
There was a problem hiding this comment.
训练时以概率
p将整个通道置零,而不是随机对通道中的单个元素置零
这句话有点绕吧?看原 PR 的描述图片里说的更清晰一点
Contributor
Author
There was a problem hiding this comment.
因为这个是dropout1d,默认和dropout对比的,把默认行为加进去对比一下就好,改好了
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
说明
PaddlePaddle__Paddle-74444@sunzhongkai588
验证结果
dropout2dP2Pdropout1dsemantics F2Ptests/test.patchsolution/code.patchBase:
Solution: