Skip to content

Conversation

@SigureMo
Copy link
Member

@SigureMo SigureMo commented Mar 6, 2024

PR types

Others

PR changes

Others

Description

#62139 引入了 op_callstack 属性,print 时跳过该属性以保持 program 的简洁,之后可能会有类似 PrintOptions 的机制,但目前先特判实现~

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Mar 6, 2024

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

#include <string>
#include <unordered_map>

#include "paddle/fluid/framework/op_proto_maker.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

依赖fluid目录下的文件感觉不太好,要不就在这个文件里新定义个常量吧

Copy link
Member Author

Choose a reason for hiding this comment

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

已修改~

@SigureMo SigureMo merged commit 1208cd3 into PaddlePaddle:develop Mar 6, 2024
@SigureMo SigureMo deleted the pir/filter-out-attr-op-callstack-when-print-program branch March 6, 2024 13:30
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