Repository navigation
【PIR API adaptor No.53、111、112、116、208、229、230】Migrate some ops into pir - #58384
Merged
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
|
✅ This PR's description meets the template requirements! |
zrr1999
marked this pull request as draft
October 25, 2023 10:57
zrr1999
marked this pull request as ready for review
October 26, 2023 07:37
Closed
Collaborator
|
Member
Author
Collaborator
Collaborator
|
对于index_put的单测,将dtype修改为str之后,因为Python端Program错乱的缘故,需要将test_static_forward函数中的 |
Collaborator
|
辛苦在PR描述中添加一下:
另外cond在本pr中还没有适配对吗? |
Member
Author
|
0x45f
reviewed
Nov 2, 2023
Collaborator
辛苦在pr描述中标明一下index_put打开了多少单测~ |
0x45f
reviewed
Nov 3, 2023
Co-authored-by: WangZhen <23097963+0x45f@users.noreply.github.com>
Collaborator
|
index_put的单测应该不是所有单测都会报错吧,之前我跑了一下有的单测是能够跑过的,辛苦下个pr尝试将index_put能跑过的单测打开~ |
zeroRains
pushed a commit
to zeroRains/Paddle
that referenced
this pull request
Nov 8, 2023
22 tasks done
danleifeng
pushed a commit
to danleifeng/Paddle
that referenced
this pull request
Nov 14, 2023
SecretXV
pushed a commit
to SecretXV/Paddle
that referenced
this pull request
Nov 28, 2023
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 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)