-
Notifications
You must be signed in to change notification settings - Fork 825
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
implement addcmul op #7282
implement addcmul op #7282
Conversation
lcylcy
commented
Jan 18, 2022
•
edited
Loading
edited
@@ -1151,6 +1156,8 @@ def RegisterMethods(): | |||
Tensor.log2 = _log2 | |||
Tensor.add = _add |
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.
我查了下torch.Tensor.add文档,我感觉目前oneflow.Tensor.add没有完全对齐(缺少了alpha参数)?
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.
add 没对齐的问题和这个PR关系不大,不过确实是个问题,可以记录在这个 issue comment 里,会有人跟进的 https://github.com/Oneflow-Inc/OneTeam/issues/1207#issuecomment-1073432125
这个 PR 涉及到 inplace functor 的实现,接口和 https://github.com/Oneflow-Inc/OneTeam/issues/806 这里好像已经有挺多不同了,我已经不熟悉了。 不知道 @wyg1997 能否抽空帮忙 review 下。谢谢~ |
Co-authored-by: Yinggang Wang <wyg19970408@gmail.com>
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.
还需要加上 eager global 单测,可以参考其他的 test_consistent_xxx.py 的写法。
本地 python -m oneflow.distributed.launch --nproc_per_node 4 test_consistent_addcmul.py
来测试
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
Speed stats:
|
CI failed when running job: cpu-module. PR label automerge has been removed |
Speed stats:
|
View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/7282/ |
Speed stats:
|