-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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.224】 Migrate paddle.tan #58737
Conversation
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 ~ 但还有某些单测有所遗漏,需要添加上去
@@ -1960,7 +1960,7 @@ def init_shape(self): | |||
def test_check_grad(self): | |||
if self.dtype == np.float16: | |||
return | |||
self.check_grad(['X'], 'Out') | |||
self.check_grad(['X'], 'Out', check_pir=True) |
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.
TestTan 继承自 TestActivation. TestActivation 有一个 test_check_output 需要继承重写并打开 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.
Done.
@@ -4745,7 +4746,7 @@ def test_check_grad(self): | |||
check_pir=True, | |||
) | |||
create_test_act_fp16_class(TestCos, check_pir=True) | |||
create_test_act_fp16_class(TestTan) | |||
create_test_act_fp16_class(TestTan, check_pir=True) |
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.
类似于 create_test_act_fp16_class
, 在该文件内还有一个 create_test_act_bf16_class(TestTan) 创建了 bf16 的单测,麻烦也打开一下吧~
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
* feat(new-ir): support tan * feat(new-ir): update ut of tan
* feat(new-ir): support tan * feat(new-ir): update ut of tan
PR types
Others
PR changes
APIs
Description
PIR API 推全升级
将 paddle.Tensor.log2 迁移升级至 pir,并更新单测
#58067
单测覆盖率:4/4