[SWE-Paddle] Complete task package for PaddlePaddle__Paddle-78220 - #1469
Open
Manfredss wants to merge 2 commits into
Open
[SWE-Paddle] Complete task package for PaddlePaddle__Paddle-78220#1469Manfredss wants to merge 2 commits into
Manfredss wants to merge 2 commits into
Conversation
Package the merged API compatibility change with exact solution and test patches, direct-Python verification, and reproducible environment guidance. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Document the rank-dependent compatibility default dimension separately from Paddle's native axis default, and keep the package metadata consistent. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| @@ -0,0 +1,43 @@ | |||
| # Add compatible `log_softmax` public APIs | |||
|
|
|||
| Implement `log_softmax` so that Paddle's standard and compatibility-facing public APIs expose consistent behavior without regressing the existing operator. | |||
Contributor
There was a problem hiding this comment.
compatibility-facing public APIs 是啥意思
| - `paddle.special.log_softmax` | ||
| - `paddle.compat.nn.functional.log_softmax` | ||
|
|
||
| When the dimension is explicitly specified with equivalent `axis`/`dim` values, all five routes must produce numerically equivalent results. The routes do not need to produce the same result when the dimension is omitted: `paddle.nn.functional.log_softmax` keeps Paddle's default `axis=-1`, while the compatibility-style routes use the PyTorch-compatible `dim=None` rule, which selects a dimension based on the input rank. |
Contributor
There was a problem hiding this comment.
while the compatibility-style routes use...
compatibility-style routes 是指 paddle.compat.nn.functional.log_softmax 么
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-78220@sunzhongkai588 Thx
验证结果