-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[PIR][1/N] Support register Python function on PIR (IR part) #76935
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
Merged
SigureMo
merged 21 commits into
PaddlePaddle:develop
from
cattidea:pir/python-op-part-1
Dec 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
70a3ac0
add custom pyop IR
DrRyanHuang 0a0c7d5
rename custom_pyop -> python_operator
DrRyanHuang 4c7d96d
add all
DrRyanHuang e14ac1f
recover
DrRyanHuang a3101ed
rename some file && function
DrRyanHuang 4ca7657
use NativeMetaTensor instead of IrTensor
SigureMo d926867
export `paddle/phi/core/ddim.h`
SigureMo b723138
rm MetaTensor
SigureMo 88893b5
`PythonOperationFunctionInstruction` -> `PythonFunctionInstruction`
SigureMo 2bfd3b7
2023 -> 2025
DrRyanHuang b8320a8
refine name in instructions
SigureMo a4432ed
custom py func -> python function
SigureMo 5c7db9d
use void* and PointerAttribute
DrRyanHuang 7287248
`HandleForPythonOp`
SigureMo cdb9201
refine comment
SigureMo a3ce468
Merge branch 'develop' into add_custom_pyop_IR
SigureMo 54c30ef
revert changes non-normalized
SigureMo 5da73eb
revert changes about native meta tensor
SigureMo ffb1c0c
Apply suggestions from code review
SigureMo 8e747f2
Update paddle/phi/api/lib/op_meta_info.cc
SigureMo 97df0d5
fix codestyle
SigureMo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
rename custom_pyop -> python_operator
- Loading branch information
commit 0a0c7d55ab53f900aa5f0f50a38e37b8621f6b51
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
这里的Custom是否要保留?
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.
part2 #76938 会一起改一下