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

[CINN] add paddle.framework.core.is_run_with_cinn() api for running check #54355

Merged

Conversation

thisjiang
Copy link
Contributor

@thisjiang thisjiang commented Jun 5, 2023

PR types

Others

PR changes

Others

Description

Pcard-71699

增加了paddle.framework.core.is_run_with_cinn()API,仅供内部用户使用,用户在运行时获知模型是否是运行在CINN中。要求在API调用前必须模型必须得运行至少一次,否则该API会返回False。

@paddle-bot
Copy link

paddle-bot bot commented Jun 5, 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.

@thisjiang thisjiang changed the title [CINN] add paddle.device.is_run_with_cinn() api for running check [CINN] add paddle.fluid.core.is_run_with_cinn() api for running check Jun 7, 2023
@thisjiang thisjiang changed the title [CINN] add paddle.fluid.core.is_run_with_cinn() api for running check [CINN] add paddle.framework.core.is_run_with_cinn() api for running check Jun 8, 2023
Copy link
Contributor

@cyber-pioneer cyber-pioneer left a comment

Choose a reason for hiding this comment

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

LGTM

@thisjiang thisjiang merged commit a0d59f9 into PaddlePaddle:develop Jun 8, 2023
@thisjiang thisjiang deleted the add_cinn_running_check_api branch June 8, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants