You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
expand/broadcast_to(1/2): base.backward.calc_gradient好像不支持 pir报错 AttributeError: 'paddle.base.libpaddle.pir.Program' object has no attribute '_appending_grad_times'
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)
你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.
zrr1999
changed the title
【PIR API adaptor No.230】Migrate some ops into pir
【PIR API adaptor No.111、112、208、229、230】Migrate some ops into pir
Oct 29, 2023
std的问题修改后出现了报错
InvalidArgumentError: The type of data we are trying to retrieve (float32) does not match the type of data (int64) currently contained in the container.
看起来这里存在一些问题。
如果有继承 TestStdAPI 的类,
class TestStdAPI_dtype(TestStdAPI):
def set_attrs(self):
self.dtype = 'float32'
这一步的 x 类型可能就会出错
self.x = np.random.uniform(-1, 1, self.shape).astype(self.dtype)
std的问题修改后出现了报错 InvalidArgumentError: The type of data we are trying to retrieve (float32) does not match the type of data (int64) currently contained in the container.
zrr1999
changed the title
【PIR API adaptor No.111、112、208、229、230】Migrate some ops into pir
【PIR API adaptor No.53、111、112、208、229、230】Migrate some ops into pir
Oct 31, 2023
zrr1999
changed the title
【PIR API adaptor No.53、111、112、208、229、230】Migrate some ops into pir
【PIR API adaptor No.53、111、112、116、208、229、230】Migrate some ops into pir
Oct 31, 2023
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)