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]Fix new ir concat split bug #55419

Merged
merged 10 commits into from
Jul 18, 2023

Conversation

phlrain
Copy link
Collaborator

@phlrain phlrain commented Jul 13, 2023

PR types

Bug fixes

PR changes

Others

Description

修复新IR下, concat split op的单测错误

Others

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Jul 13, 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 Jul 13, 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.

@phlrain phlrain changed the title Fix new ir concat op [NewIR]Fix new ir concat split bug Jul 17, 2023
@@ -1087,6 +1088,26 @@ struct FetchOpTranscriber : public OpTranscriber {
}
};

// NOTE, add_n op in legacy ops don't have a kernel, so we use a new op for now
Copy link
Contributor

Choose a reason for hiding this comment

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

我看原本不管外面是不是inplace都会调用同一个kernel实现,这样的话是不是不管 Op的输入输出有没有同一个变量,都把它翻译为非inplace op,然后去掉现在pd_op.yaml里的add_n_下划线版本定义,只对应到一个add_n比较好。

Copy link
Contributor

Choose a reason for hiding this comment

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

像这种op有必要区分它们的inplace语义吗?

"Only support DenseTensorType in vector"));
}
}
} else if (type.isa<paddle::dialect::AllocatedDenseTensorType>()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} else if (type.isa<paddle::dialect::AllocatedDenseTensorType>()) {
} else if (type.isa<paddle::dialect::AllocatedSelectedRowsType>()) {

这里是写错了?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@kangguangli kangguangli left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@heavyrain-lzy heavyrain-lzy left a comment

Choose a reason for hiding this comment

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

LGTM for YAML

@phlrain phlrain merged commit 5e6645d into PaddlePaddle:develop Jul 18, 2023
26 of 27 checks passed
cqulilujia pushed a commit to cqulilujia/Paddle that referenced this pull request Jul 24, 2023
* fix new ir concat op bug

* fix bug

* using add_n_with_kernel instead of add_n impl

* fix pd_op yaml bug

* fix bug
wz1qqx pushed a commit to wz1qqx/Paddle that referenced this pull request Jul 31, 2023
* fix new ir concat op bug

* fix bug

* using add_n_with_kernel instead of add_n impl

* fix pd_op yaml bug

* fix bug
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

4 participants