-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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] Delete ir parser #70534
[PIR] Delete ir parser #70534
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/common/flags.cc
Outdated
|
||
PHI_DEFINE_EXPORTED_string(disable_logging_value_attr_list, | ||
"", | ||
"Whether to disable logging value attr in 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.
这个描述等同于没有描述😂
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
paddle/common/flags.cc
Outdated
"", | ||
"Whether to disable logging op attr in PIR."); | ||
|
||
PHI_DEFINE_EXPORTED_string(disable_logging_value_attr_list, |
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.
如果Op 的某个属性与 Value 的某个属性,是同一类型的属性,disable_logging_value_attr_list 会导致 op中对应属性信息也被同步删除。
除非这个 flag,最终被设计为仅仅控制 TensorDistAttr
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
paddle/pir/src/core/ir_printer.cc
Outdated
@@ -360,6 +381,21 @@ void IrPrinter::PrintOperandsType(const Operation& op) { | |||
op_operand_types.emplace_back(); | |||
} | |||
} | |||
// if (!FLAGS_disable_logging_value_attr_list.empty()) { |
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.
delete
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
@@ -804,7 +804,7 @@ def _parallel_pir(self, mode): | |||
|
|||
# re-run apply_mix2dist_pass to dist accumulator. | |||
apply_mix2dist_pass(dist_program) | |||
|
|||
print("dist_program:", dist_program) |
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.
delete
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
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.
781f53d
to
e0dbfe9
Compare
PR Category
Execute Infrastructure
PR Types
Others
Description
删除ir parser相关逻辑和单测,对program打印进行了一些修改,具体包括:
pcard-67164