Skip to content
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

[NewIR] No.40-41 Migrate paddle.tanh and paddle.transpose into pir #57248

Merged
merged 4 commits into from
Sep 18, 2023

Conversation

longranger2
Copy link
Contributor

@longranger2 longranger2 commented Sep 12, 2023

PR types

Others

PR changes

APIs

Description

@paddle-bot
Copy link

paddle-bot bot commented Sep 12, 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 Sep 12, 2023
@longranger2
Copy link
Contributor Author

tanh对应的单测只有test/cinn/ops/test_tanh_op.py,是在这里进行单测验证的吗?

@longranger2 longranger2 changed the title [NewIR] Call _C_ops.tanh and _C_ops.transpose in new ir [NewIR] No.40-41 Migrate paddle.tanh and paddle.transpose into pir Sep 12, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Sep 13, 2023
@YuanRisheng
Copy link
Contributor

tanh对应的单测只有test/cinn/ops/test_tanh_op.py,是在这里进行单测验证的吗?

在test/legacy_test/test_activation_op.py里,有个TestTanh的单测

Copy link
Contributor

Choose a reason for hiding this comment

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

transpose前向到反向的调用已经支持:#57279,可以拉取最新代码进行rerun


def test_check_grad(self):
self.check_grad(['X'], 'Out', check_prim=True)
self.check_grad(['X'], 'Out', check_prim=True, check_new_ir=True)

Copy link
Contributor

Choose a reason for hiding this comment

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

transpose的单测还有一些未开启,请将此文件中所有涉及transpose算子的单测开启new_ir flag

@longranger2
Copy link
Contributor Author

@changeyoung98 辛苦review下~

@changeyoung98 changeyoung98 merged commit acf14f2 into PaddlePaddle:develop Sep 18, 2023
changeyoung98 added a commit that referenced this pull request Sep 18, 2023
Frida-a pushed a commit to Frida-a/Paddle that referenced this pull request Oct 14, 2023
…addlePaddle#57248)

* tanh and transpose in new ir

* fix tanh test

* Update test_transpose_op.py
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
…addlePaddle#57248)

* tanh and transpose in new ir

* fix tanh test

* Update test_transpose_op.py
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