-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API Compatibility] add out parameter for maximum minimum
#74683
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提交成功,感谢你对开源项目的贡献! |
|
@aquagull 冲突需要处理下 |
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
| (integer types are autocasted into float32). | ||
| Examples: | ||
| .. code-block:: python | ||
| >>> import paddle |
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.
如果我没记错的话,code-block 下面不加空行英文文档渲染是会出问题的
这段文档不应该直接从原来 API 文档里直接 copy 么?还会进行修改么?
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.
这个迁移的时候从Github Files Changedcopy的,没注意到没有空行。之后会恢复
python/paddle/tensor/math.py
Outdated
| """ | ||
| Compare two tensors and returns a new tensor containing the element-wise maxima. The equation is: | ||
| .. math:: |
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.
同上
python/paddle/tensor/math.py
Outdated
|
|
||
|
|
||
| def maximum(x: Tensor, y: Tensor, name: str | None = None) -> Tensor: | ||
| @ParamAliasDecorator({"x": ["input"], "y": ["other"]}) |
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-bechmark没过,试试改成函数式的装饰器 param_two_alias,这个性能好一些
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.
done
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #74683 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 2
Lines ? 6
Branches ? 0
===========================================
Hits ? 6
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/re-run all-failed |
out parameter for maximum minimum topkout parameter for maximum minimum
out parameter for maximum minimum out parameter for maximum minimum topk
out parameter for maximum minimum topkout parameter for maximum minimum
|
test/amp下的单测报什么错啊?删掉的原因是什么? |
@DanielSun11 我当时看到另一个 PR 也简单调研了下,#74795 (comment) 这部分应该是针对老 IR 写的 AMP case,使用了 这个 @wanghuancoder 可以确认下 |
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,处理冲突
XiaoguangHu01
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
|
/re-run all-failed |
PR Category
User Experience
PR Types
Others
Description
将
maximumminimum下沉到C++层,并删除了相关老IR的单测pcard-71500