-
Notifications
You must be signed in to change notification settings - Fork 5.8k
【PIR API adaptor No.53、111、112、116、208、229、230】Migrate some ops into pir #58384
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提交成功,感谢你对开源项目的贡献! |
✅ This PR's description meets the template requirements! |
|
对于index_put的单测,将dtype修改为str之后,因为Python端Program错乱的缘故,需要将test_static_forward函数中的 |
辛苦在PR描述中添加一下:
另外cond在本pr中还没有适配对吗? |
|
辛苦在pr描述中标明一下index_put打开了多少单测~ |
Co-authored-by: WangZhen <23097963+0x45f@users.noreply.github.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.
LGTM
index_put的单测应该不是所有单测都会报错吧,之前我跑了一下有的单测是能够跑过的,辛苦下个pr尝试将index_put能跑过的单测打开~ |
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
PR types
Others
PR changes
APIs
Description
PIR API 推全升级
将如下算子迁移升级至 pir,并更新单测
expand
/broadcast_to
(1/2): base.backward.calc_gradient好像不支持 pir报错 AttributeError: 'paddle.base.libpaddle.pir.Program' object has no attribute '_appending_grad_times'solve
(20/20)diag
(4/4)linspace
(4/4)std
(2/2)cond
:依赖于 【PIR API adaptor No.219 、220】 Migrate pinv/svd into pir #58446slogdet
/det
(6/6)index_add
(5/5)index_put
(0/34):添加 PIR 测试遇到问题inverse
(7/7):遇到问题
std 测试 File "/home/linuxbrew/.linuxbrew/Cellar/python@3.10/3.10.13/lib/python3.10/site-packages/paddle/tensor/manipulation.py", line 187, in cast return _C_ops.cast(x, dtype) ValueError: (InvalidArgument) cast: argument (position 2) must be one of paddle::DataType, but got paddle.base.libpaddle.VarType (at /workspace/Paddle/paddle/fluid/pybind/eager_utils.cc:697)index_put 测试
按照 https://github.com/PaddlePaddle/Paddle/pull/58496/files#diff-1ccaa1eaa0f1a4a582a62b7813e9d6d9c561d0579aea019074a39eba769be687R649
等参考内容修改后,依然会有如下报错
ValueError: (InvalidArgument) The Variable type must be N3phi11DenseTensorE, but the type it holds is N6paddle9framework9PhiVectorIPKNS0_8VariableEEE.
[Hint: Expected holder_->Type() == VarTypeTrait::kId, but received holder_->Type():64 != VarTypeTrait::kId:7.] (at /workspace/Paddle/paddle/fluid/framework/variable.h:52)