[API Compatibility] Add paddle.Tensor.clamp_ ,paddle.nn.functional.logsigmoid, paddle.functional.meshgrid, paddle.nn.init.calculate_fan_in_and_fan_out ,paddle.autocast#76206
Merged
zhwesky2010 merged 27 commits intoPaddlePaddle:developfrom Nov 6, 2025
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
…t、meshgrid、autocast
…t、meshgrid、autocast
zhwesky2010
reviewed
Nov 5, 2025
python/paddle/__init__.py
Outdated
| get_autocast_gpu_dtype, | ||
| is_autocast_enabled, | ||
| ) | ||
| from .amp.auto_cast import autocast as _autocast |
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
…t、meshgrid、autocast
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #76206 +/- ##
==========================================
Coverage ? 94.73%
==========================================
Files ? 6
Lines ? 19
Branches ? 0
==========================================
Hits ? 18
Misses ? 1
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
/re-run all-failed |
Contributor
Author
|
/re-run all-failed |
zhwesky2010
reviewed
Nov 6, 2025
| from paddle.base import core | ||
|
|
||
|
|
||
| @unittest.skipIf( |
| and core.get_xpu_device_version(0) < core.XPUVersion.XPU3, | ||
| "run test when xpu's compute capability >= xpu3.", | ||
| ) | ||
| @unittest.skipIf( |
| def test_cal_fan_in_and_out(self): | ||
| x = paddle.tensor.randn([10]) | ||
| self.assertEqual( | ||
| _calculate_fan_in_and_fan_out(x), |
Contributor
There was a problem hiding this comment.
这里不用重新复制一个api过来,可以直接算好expect的值
Contributor
|
@wanghuancoder skipif求approve。单测写法优化下个PR再提,赶下时间。 |
SigureMo
approved these changes
Nov 6, 2025
Contributor
Author
|
/re-run all-failed |
1 similar comment
Contributor
Author
|
/re-run all-failed |
wanghuancoder
approved these changes
Nov 6, 2025
Contributor
Author
|
/re-run all-failed |
Manfredss
pushed a commit
to Manfredss/PaddleDebug
that referenced
this pull request
Nov 7, 2025
…gsigmoid, paddle.functional.meshgrid, paddle.nn.init.calculate_fan_in_and_fan_out ,paddle.autocast (PaddlePaddle#76206) * sharding stage3 bugfix * sharding stage3 bugfix * sharding stage3 bugfix * sharding stage3 bugfix * sharding stage3 bugfix * sharding stage3 bugfix * support recompute's forward and backward in pipeline mode * [API Compatibility] Add paddle.Tensor.clip_ * Revert "support recompute's forward and backward in pipeline mode" This reverts commit 7fd48d9. * Revert "[API Compatibility] Add paddle.Tensor.clip_" This reverts commit 025efc3. * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast * [API Compatibility] Add clip_、logsigmoid、_calculate_fan_in_and_fan_out、meshgrid、autocast
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.
PR Category
User Experience
PR Types
New features
Description
API Compatibility add:




paddle.Tensor.clamp_
paddle.nn.functional.logsigmoid
paddle.functional.meshgrid
paddle.nn.init.calculate_fan_in_and_fan_out
paddle.autocast
paconvert结果:
paddle.Tensor.clamp
paddle.nn.functional.logsigmoid
paddle.functional.meshgrid:等底层实现的代码合入由他来测试
paddle.nn.init._calculate_fan_in_and_fan_out
paddle.autocast: