-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[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
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
zhwesky2010
left a comment
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.
LGTM,可以一次合并提交多个别名
…t、meshgrid、autocast
…t、meshgrid、autocast
python/paddle/__init__.py
Outdated
| get_autocast_gpu_dtype, | ||
| is_autocast_enabled, | ||
| ) | ||
| from .amp.auto_cast import autocast as _autocast |
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.
这里直接导入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:
|
|
/re-run all-failed |
|
/re-run all-failed |
zhwesky2010
left a comment
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.
LGTM
| from paddle.base import core | ||
|
|
||
|
|
||
| @unittest.skipIf( |
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.
这里的skipIf怎么写了这么多
| and core.get_xpu_device_version(0) < core.XPUVersion.XPU3, | ||
| "run test when xpu's compute capability >= xpu3.", | ||
| ) | ||
| @unittest.skipIf( |
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.
这两个xpu是不是重复的
| def test_cal_fan_in_and_out(self): | ||
| x = paddle.tensor.randn([10]) | ||
| self.assertEqual( | ||
| _calculate_fan_in_and_fan_out(x), |
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.
这里不用重新复制一个api过来,可以直接算好expect的值
|
@wanghuancoder skipif求approve。单测写法优化下个PR再提,赶下时间。 |
|
/re-run all-failed |
1 similar comment
|
/re-run all-failed |
|
/re-run all-failed |
…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
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: