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

[PHI Decoupling]Remove Profiler header (Part3) #50721

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

YuanRisheng
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

迁移Profiler组件并移除对"paddle/fluid/platform/profiler/supplement_tracing.h"的依赖

@paddle-bot
Copy link

paddle-bot bot commented Feb 21, 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.

@@ -0,0 +1,39 @@
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

2021 -> 2023

Copy link
Contributor Author

@YuanRisheng YuanRisheng Feb 22, 2023

Choose a reason for hiding this comment

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

下个解耦pr修改

@@ -30,10 +31,8 @@ class RuntimeContext;
}
namespace platform {

class RecordOpInfoSupplement {
class RecordOpInfoSupplement : public phi::RecordOpInfoSupplement {
Copy link
Contributor

Choose a reason for hiding this comment

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

这里用同名类做继承有什么作用吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

实际上不同名,因为命名空间不一样,继承是为了能够使用phi::RecordOpInfoSupplement当中的函数

Copy link
Contributor

@jiahy0825 jiahy0825 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@rainyfly rainyfly left a comment

Choose a reason for hiding this comment

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

LGTM to move common_event and supplement_tracing in phi for recording Op input shape info.

@YuanRisheng YuanRisheng merged commit 8476c55 into PaddlePaddle:develop Feb 23, 2023
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.

5 participants