-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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] tile #53317
Closed
Closed
[static op generation] tile #53317
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
588d66e
[static op generation] tile
gouzil 73ee06c
[fluid] rm tile_op.cc
gouzil 1b82bb1
RollBACK tile_sig
gouzil 8b15495
RollBACK tile_sig.cc
gouzil a9a6c3c
RollBACK tile_sig.cc
gouzil 007f3b6
Merge branch 'develop' into mv_tile_yml
gouzil cd3240f
[phi] fix backward composite error
gouzil a1b78b9
[phi][api] add manual_signature in ops.yaml
gouzil 4117f52
fix manual_signature
gouzil a24890d
[phi] fix manual_signature
gouzil 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -1997,6 +1997,16 @@ | |
func : thresholded_relu | ||
backward : thresholded_relu_grad | ||
|
||
- op : tile | ||
args : (Tensor x, IntArray repeat_times = {}) | ||
output : Tensor(out) | ||
infer_meta : | ||
func : TileInferMeta | ||
kernel : | ||
func : tile | ||
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. 增加 |
||
data_type : x | ||
backward : tile_grad | ||
|
||
- op : topk | ||
args : (Tensor x, Scalar(int) k = 1, int axis = -1, bool largest = true, bool sorted = true) | ||
output : Tensor(out), Tensor(indices) | ||
|
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.
在
op_compat.yaml
中增加表示tile的signature保持手写,但是tle_grad和tile_double_grad不需要保持手写,所以需要删除
paddle/phi/ops/compat/tile_sig.cc
中grad的相关代码,保留tile的代码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.
应该写
manual_signature : [tile, tile_grad]
吧, tle_grad 也需要保持手写Paddle/paddle/phi/ops/compat/tile_sig.cc
Line 34 in 0fac328