Skip to content

Conversation

xiaoyewww
Copy link
Contributor

@xiaoyewww xiaoyewww commented Nov 2, 2023

PR types

Others

PR changes

APIs

Description

PIR API 推全升级
将 paddle.Tensor.log2 迁移升级至 pir,并更新单测

单测覆盖率:6/6
#58067

Copy link

paddle-bot bot commented Nov 2, 2023

你的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.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 2, 2023
Copy link
Contributor

@MarioLulab MarioLulab left a 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
Copy link
Contributor

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):
Copy link
Contributor

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 开关,麻烦打开一下吧~

Copy link
Contributor

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 修饰一下吧

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Nov 3, 2023
@xiaoyewww
Copy link
Contributor Author

@MarioLulab 已按照要求修改,麻烦重新review,多谢~

Copy link
Contributor

@MarioLulab MarioLulab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0x45f 0x45f merged commit 1b53858 into PaddlePaddle:develop Nov 6, 2023
@xiaoyewww xiaoyewww deleted the new-ir/log2 branch November 8, 2023 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants