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

[NewIR] Printer for Program/Operation/Type and Register ops for ResNet50 #53988

Conversation

kangguangli
Copy link
Contributor

PR types

New features

PR changes

Others

Description

This PR does the following things:

  1. add printer for Program/Operation/Type
  2. register empty ops for ResNet50

Others

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented May 19, 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.

@paddle-bot
Copy link

paddle-bot bot commented May 19, 2023

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

REIGSTER_EMPTY_OP(conv2d, Conv2DOp);
REIGSTER_EMPTY_OP(feed, FeedOp);
REIGSTER_EMPTY_OP(batch_norm, BatchNormOp);
REIGSTER_EMPTY_OP(batch_norm_, BatchNormOp_);
Copy link
Contributor

Choose a reason for hiding this comment

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

BatchNormOp_ 是不是写成 BatchNorm_Op 更合理一些?

Copy link
Contributor Author

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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

这个 namespace 还需要添加么?

Copy link
Contributor Author

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.

Copy link
Contributor

@winter-wang winter-wang left a comment

Choose a reason for hiding this comment

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

LGTM

@kangguangli kangguangli merged commit a9b1e88 into PaddlePaddle:develop May 22, 2023
@kangguangli kangguangli deleted the prerequisite_for_program_desc_converter branch May 22, 2023 07:03
bukejiyu pushed a commit to bukejiyu/Paddle that referenced this pull request May 22, 2023
…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>
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.

4 participants