-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[PIR][3/3] Support register Python function on PIR (construct program and execution part) #76888
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
Merged
Changes from 1 commit
Commits
Show all changes
35 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 a7ac4f3
normalize eager_utils
SigureMo 18c9c2b
align part1 and part2
SigureMo ef81be2
Merge branch 'develop' into add_custom_pyop_IR
SigureMo 395ea10
rm operator<< for vec<T>
SigureMo fd77e86
cleanup code
SigureMo 2145b0d
cleanup comments
SigureMo b786b82
prepend indent to op attrs
SigureMo b9d3738
restore exc in pir_interpreter
SigureMo 6819b90
cleanup some comments
SigureMo 0a82cee
cleanup some code
SigureMo 284deae
reformat msg
SigureMo c797f4d
cleanup infermeta in runtime
SigureMo b420902
normalize some python code
SigureMo 6e0ee44
add ut
SigureMo 05b7ca0
revert python/paddle/jit/sot/opcode_translator/executor/function_grap…
SigureMo 744458e
Apply suggestions from code review
SigureMo bffe338
Apply suggestions from code review
SigureMo 9fc149a
format code
SigureMo 858f7b5
fix co_flags shadowing
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
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.
统一一下命名吧:
py_oppython_operator,两者一起不缩写避免和 custom op 相互之间冲突
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.
lower 后的 kernel dialect 叫啥合适呢?之前叫
custom_py_func,改成python_operator_function?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.
自定义算子的叫啥?