-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Precision Depth Alignment] fix beta and threshold of paddle.nn.functional.softplus to double #75426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zhengshengning
merged 17 commits into
PaddlePaddle:develop
from
zhengshengning:accuracy_stable_softplus_v2
Oct 13, 2025
Merged
[Precision Depth Alignment] fix beta and threshold of paddle.nn.functional.softplus to double #75426
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9f08428
fix beta and threshold of Softplus to double
zhengshengning 97b7153
merge develop
zhengshengning f5d6948
fix test_softplus_activation_fuse_pass v1
zhengshengning de89ecc
fix test_activation_zero
zhengshengning b817808
fix flaot of SoftplusDoubleGradKernel to double
zhengshengning 17ef802
add op_patches for softplus
zhengshengning 2537a9f
add yaml for ops/yaml/legacy
zhengshengning 822bbe7
fix infershape/operator for FLOAT64
zhengshengning 1c0e11c
fix
zhengshengning c8a28b2
add SoftPlusOpTranscriber
zhengshengning 7eec903
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
zhengshengning f60b944
fix
zhengshengning f36ae90
fix
zhengshengning 7fef327
fix1
zhengshengning 1b79191
fix2
zhengshengning 8d6e0a4
fix coverage
zhengshengning 6a3694c
fix coverage2
zhengshengning File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| op_patches: | ||
| - op_name : pd_op.softplus | ||
| actions: | ||
| - action : modify_attr | ||
| object : beta | ||
| type : pir::DoubleAttribute | ||
| data : 1.0 | ||
| - action : modify_attr | ||
| object : threshold | ||
| type : pir::DoubleAttribute | ||
| data : 20.0 | ||
| - op_name : onednn_op.fused_softplus | ||
| actions: | ||
| - action : modify_attr | ||
| object : beta | ||
| type : pir::DoubleAttribute | ||
| data : 1.0 | ||
| - action : modify_attr | ||
| object : threshold | ||
| type : pir::DoubleAttribute | ||
| data : 20.0 | ||
| - action : modify_attr | ||
| object : fuse_alpha | ||
| type : pir::DoubleAttribute | ||
| data : 0.0 | ||
| - action : modify_attr | ||
| object : fuse_beta | ||
| type : pir::DoubleAttribute | ||
| data : 0.0 | ||
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里和静态图的配置是不是没有对应上?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该修改是为了pir下save/load 版本兼容,具体可见说明:https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/pir/serialize_deserialize/patch/Readme.md