-
Notifications
You must be signed in to change notification settings - Fork 5.8k
【PIR API adaptor No.131】 Migrate paddle.Tensor.log2 into pir #58634
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提交成功,感谢你对开源项目的贡献! |
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 ~ 但有一些单测遗漏,需要修改一下 😃
@@ -3488,6 +3489,7 @@ def init_shape(self): | |||
|
|||
|
|||
class TestLog2_Op_Int(unittest.TestCase): | |||
@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.
这个单测并没有运行在静态图下,所以不需要 @test_with_pir_api
修饰
|
||
@test_with_pir_api | ||
def test_api(self): |
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_activation_op.py) 的下面还有 被 create_test_act_fp16_class 与 create_test_act_bf16_class 创建的 fp16 与 bf16 单测,即 create_test_act_fp16_class(TestLog2) 和 create_test_act_bf16_class(TestLog2)。这些单测貌似没有打开 check_pir 开关,麻烦打开一下吧~
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.
btw, 在 test/legacy_test/test_op_name_conflict.py
文件的TestOpNameConflict,有一个运行在静态图下的单测,也使用 @test_with_pir_api
修饰一下吧
2c5d920
to
868d5a8
Compare
@MarioLulab 已按照要求修改,麻烦重新review,多谢~ |
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 推全升级
将 paddle.Tensor.log2 迁移升级至 pir,并更新单测
单测覆盖率:6/6
#58067