-
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
[NewIR] Printer for Program/Operation/Type and Register ops for ResNet50 #53988
[NewIR] Printer for Program/Operation/Type and Register ops for ResNet50 #53988
Conversation
… into program_desc_converter
… into program_desc_converter
… into program_desc_converte_to_ir_program
…_desc_converte_to_ir_program
…_desc_converte_to_ir_program
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
REIGSTER_EMPTY_OP(conv2d, Conv2DOp); | ||
REIGSTER_EMPTY_OP(feed, FeedOp); | ||
REIGSTER_EMPTY_OP(batch_norm, BatchNormOp); | ||
REIGSTER_EMPTY_OP(batch_norm_, BatchNormOp_); |
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.
BatchNormOp_ 是不是写成 BatchNorm_Op 更合理一些?
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.
可以的,之后再改。
Sure, will change later.
|
||
namespace ir { | ||
|
||
namespace { |
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.
这个 namespace 还需要添加么?
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.
这是用来让newline
只在printer.cc
里可见的,避免该变量暴露在ir
命名空间中。
This is used to make newline
only visible in printer.cc
and avoid it exposed to ir
namespace.
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
…t50 (PaddlePaddle#53988) * add conv2d * printer draft * fix bug * printer draft finish * fix windows CI * commit printer and resnet50 related ops * fix * fix * fix op definition --------- Co-authored-by: umiswing <umiswing@foxmail.com> Co-authored-by: zhangbo9674 <zhangbo54@baidu.com>
PR types
New features
PR changes
Others
Description
This PR does the following things:
Others
Pcard-67164