Skip to content

Conversation

@chen2016013
Copy link
Contributor

@chen2016013 chen2016013 commented May 9, 2024

PR Category

CINN

PR Types

Improvements

Description

Pcard-67164
Add rules for cinn_to_pd

@paddle-bot
Copy link

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

@chen2016013 chen2016013 marked this pull request as draft May 9, 2024 09:34
@chen2016013 chen2016013 marked this pull request as ready for review May 9, 2024 09:45

- op : reduce_prod
args : (Tensor x, int64_t[] dim, bool keep_dim)
args : (Tensor x, int64_t[] dim, bool keep_dim, bool reduce_all)
Copy link
Contributor

Choose a reason for hiding this comment

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

reduce_all和dim为空是等价的,这里需要reduce_all参数吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这里是为了对齐pd_op和cinn_op的attr,reduce_all参数不参与cinn op的InferMeta和kernel运算

@chen2016013 chen2016013 merged commit 2e7cfc2 into PaddlePaddle:develop May 11, 2024
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 11, 2024
* add shape_ops_fallback_to_phi_pass

* fix test

* add ops for cinn_to_pd

* Update accuracy_check_pass.cc

* fix test_sub_graph_90 bug

* update

---------

Co-authored-by: zyfncg <[email protected]>
@chen2016013 chen2016013 deleted the test0509 branch May 24, 2024 07:56
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.

3 participants