-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[static op generation] transpose #54155
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7c6073e
[static op generation] transpose
Liyulingyue 9f32948
[static op generation] concat
Liyulingyue e2b0454
Revert "[static op generation] concat"
Liyulingyue 0e16521
Merge remote-tracking branch 'origin/transpose' into transpose
Liyulingyue a8229c2
Revert "[static op generation] transpose"
Liyulingyue 5896393
mv transpose2 from transpose_sig.cc
Liyulingyue 02f50de
Merge branch 'develop' into transpose
Liyulingyue c92ffae
mv transpose2
Liyulingyue 065c2c6
add GetTranspose2ExpectedKernelType
Liyulingyue 7e7a44d
add GetTranspose2ExpectedKernelType
Liyulingyue 1d4a378
add transpose2
Liyulingyue 0684b94
Apply suggestions from code review
Liyulingyue 3e89ac4
add transpose2
Liyulingyue b4d5144
Merge remote-tracking branch 'origin/transpose' into transpose
Liyulingyue a40bd7a
add transpose2
Liyulingyue 11d9e9a
Apply suggestions from code review
Liyulingyue 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
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2242,6 +2242,15 @@ | |
func : trace | ||
backward : trace_grad | ||
|
||
- op : transpose | ||
args : (Tensor x, int[] perm) | ||
output : Tensor | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
infer_meta : | ||
func : TransposeInferMeta | ||
kernel : | ||
func : transpose | ||
backward : transpose_grad | ||
|
||
- op : triangular_solve | ||
args : (Tensor x, Tensor y, bool upper=true, bool transpose=false, bool unitriangular=false) | ||
output : Tensor | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,5 @@ KernelSignature TransposeGradOpArgumentMapping( | |
|
||
} // namespace phi | ||
|
||
PD_REGISTER_BASE_KERNEL_NAME(transpose2, transpose); | ||
PD_REGISTER_BASE_KERNEL_NAME(transpose2_grad, transpose_grad); | ||
|
||
PD_REGISTER_ARG_MAPPING_FN(transpose2, phi::TransposeOpArgumentMapping); | ||
PD_REGISTER_ARG_MAPPING_FN(transpose2_grad, | ||
phi::TransposeGradOpArgumentMapping); | ||
PD_REGISTER_ARG_MAPPING_FN(transpose, phi::TransposeOpArgumentMapping); | ||
PD_REGISTER_ARG_MAPPING_FN(transpose_grad, phi::TransposeGradOpArgumentMapping); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 不要修改 |
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.
Transpose2Op
跟FusedTransposeOpMaker
耦合,而且infershape
也需要修改支持,建议这个任务可以先行关闭。