-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[PIR][2/N] Support register Python function on PIR (NativeMetaTensor and lower part)
#76938
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
Conversation
…` and lower part)
|
你的PR提交成功,感谢你对开源项目的贡献! |
Co-authored-by: Ryan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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)
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