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

Support dropout op in pir #58773

Merged
merged 47 commits into from
Nov 10, 2023
Merged

Conversation

phlrain
Copy link
Collaborator

@phlrain phlrain commented Nov 7, 2023

PR types

New features

PR changes

Others

Description

适配dropout算子在新IR c++层面的全链条,并修复部分的bug

备注:由于cinn当前不能生成uniform的kernel,所以uniform op会调用phi kernel,已经适配的uniform 相关的pass逻辑暂时保留(不调用)

Pcard-67164

Aurelius84 and others added 30 commits October 30, 2023 09:35
Aurelius84
Aurelius84 previously approved these changes Nov 9, 2023
Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

可以单独PR fix

@@ -42,11 +42,13 @@ std::unordered_map<std::string, OpPatternKind> OpKindMap = {
{"pd_op.exp", OpPatternKind::kElementWise},
{"pd_op.sin", OpPatternKind::kElementWise},
{"pd_op.cos", OpPatternKind::kElementWise},
{"pd_op.cast", OpPatternKind::kElementWise},
{"pd_op.greater_than", OpPatternKind::kElementWise},
Copy link
Contributor

Choose a reason for hiding this comment

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

这里如果是与CINN 对齐OpPatternKind的话,可以使用CompatibleInfo::OpKind(op)来获取,若有op name 差异性,也仅需配置下CompatibleInfo下的Op_NAMES映射表即可,可省去重复维护的成本。

@phlrain phlrain merged commit d10f11c into PaddlePaddle:develop Nov 10, 2023
28 checks passed
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
* [CINN+PIR]Support DoGroupSchedule for PIRComppiler

fix complation problem

* fix conflict

* support cinn broadcast code gen

* fix op fusion pass bug

* using output_ops to parse function arguments

* update

* fix unittest

* remove VLOG(1)

* ignore some UT and add FIXME

* update

* remove args limit

* fix bug and remove useless code

* update

* update

* fix bug

* update

* fix bug

* update

* update

* update

* update

* remove useless code

* merge layer norm manual

* remove usless code

* remove usless code

* remove useless code

---------

Co-authored-by: Aurelius84 <zhangliujie@baidu.com>
SecretXV pushed a commit to SecretXV/Paddle that referenced this pull request Nov 28, 2023
* [CINN+PIR]Support DoGroupSchedule for PIRComppiler

fix complation problem

* fix conflict

* support cinn broadcast code gen

* fix op fusion pass bug

* using output_ops to parse function arguments

* update

* fix unittest

* remove VLOG(1)

* ignore some UT and add FIXME

* update

* remove args limit

* fix bug and remove useless code

* update

* update

* fix bug

* update

* fix bug

* update

* update

* update

* update

* remove useless code

* merge layer norm manual

* remove usless code

* remove usless code

* remove useless code

---------

Co-authored-by: Aurelius84 <zhangliujie@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.

None yet

2 participants