-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【PIR API adaptor No.65, 69】Migrate some ops into pir #58698
Conversation
@@ -1199,7 +1199,7 @@ def _check_attr(attr, message): | |||
else: | |||
num_columns = num_rows | |||
|
|||
if in_dynamic_mode(): | |||
if in_dynamic_or_pir_mode(): |
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/creation.py
Outdated
@@ -2177,7 +2179,7 @@ def empty_like(x, dtype=None, name=None): | |||
dtype = x.dtype | |||
dtype = convert_dtype(dtype) | |||
|
|||
if in_dynamic_mode(): | |||
if in_dynamic_or_pir_mode(): |
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.
test/legacy_test/test_eye_op.py
Outdated
@@ -144,6 +145,7 @@ def init_info(self): | |||
self.shapes = [[2, 3, 4]] | |||
self.save_path = os.path.join(self.temp_dir.name, self.path_prefix()) | |||
|
|||
@test_with_pir_api |
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.
可以先跳过这个单测,然后在 PR 描述里记录该单测暂不支持
Sorry to inform you that ba8dc2b's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
long 师傅这个 pr 还在推进吗~ |
推的哈哈,最近比较忙~ |
done |
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.
nice work~
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_TestTensorEye 单测没有适配,辛苦有空的时候适配一下吧~ 😄
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
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.
这个文件下继承自 TestEmptyLikeAPICommon 的单测均为动态图单测,不在本次组网API PIR 迁移的单测覆盖目标内。目前看来 empty_like 的单测中,除了 TestEmptyError 尚未支持,其他都已经适配了。所以请更新一下 pr 描述里的单测覆盖率吧~
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
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,并更新单测
empty_like(3/3)
这个文件下继承自 TestEmptyLikeAPICommon 的单测均为动态图单测,不在本次组网API PIR 迁移的单测覆盖目标内。目前在 empty_like 的单测中,除了 TestEmptyError 尚未支持,其他都已经适配了
eye(5/7):TestEyeRowsCol暂时不支持
新IR Python API适配升级 #58067