[PIR][2/N] Support register Python function on PIR (NativeMetaTensor and lower part)#76938
Merged
SigureMo merged 9 commits intoPaddlePaddle:developfrom Dec 17, 2025
Merged
Conversation
…` and lower part)
|
你的PR提交成功,感谢你对开源项目的贡献! |
Co-authored-by: Ryan <44900829+DrRyanHuang@users.noreply.github.com>
SigureMo
commented
Dec 17, 2025
zyfncg
previously approved these changes
Dec 17, 2025
zyfncg
approved these changes
Dec 17, 2025
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (6.89%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #76938 +/- ##
==========================================
Coverage ? 6.89%
==========================================
Files ? 3
Lines ? 58
Branches ? 0
==========================================
Hits ? 4
Misses ? 54
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
NativeMetaTensor and lower part)NativeMetaTensor and lower part)
This was referenced Dec 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Execute Infrastructure
PR Types
New features
Description
支持在 PIR 上表示 Python 函数,为 #76888 的拆分与正式化版本,主要由 @DrRyanHuang 开发
本 PR 为 part2,主要包含如下内容:
NativeMetaTensor作为 Python function infermeta 的桥梁,替代掉IrMetaTensor和IrTensor,IrMetaTensor并不 ownedIrTensor,这会导致所有权关系在 Python 这种将输出 Tensor 作为返回值返回的场景很难实现,因此添加 owned 结构持有 dtype 和 shape 解决该问题#76888 将会作为最后一个 PR 合入
NativeMetaTensorand lower part) #76938