-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[slice]add IndexPutWithSortKernel in index_elementwise_get_grad slice… #74344
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
|
你的PR提交成功,感谢你对开源项目的贡献! |
xiaoguoguo626807
left a comment
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.
LGTM, PR 提升了tesnor 索引case的反向性能,前向性能降低,可暂时豁免slice ci , 后续补充优化前向case
d45326e to
698330b
Compare
| accumulate); | ||
| } | ||
|
|
||
| const bool is_combined = (index_size == 1) ? false : true; |
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.
is_combined表示什么含义?加些注释说明
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.
is_combined用来区分是普通索引还是组合索引,如果仅有一个普通索引反向时会采用性能更好的IndexPutWithSortKernel。新增了注释。
paddle/phi/ops/yaml/op_compat.yaml
Outdated
| backward : index_elementwise_get_grad, index_elementwise_get_double_grad | ||
| inputs : | ||
| {x : x, index : index, input_dims : input_dims, input_strides : input_strides, index_dims : index_dims, index_stride : index_stride, slice_offset : slice_offset, accumulate : accumulate} | ||
| {x : x, index : index, input_dims : input_dims, input_strides : input_strides, index_dims : index_dims, index_stride : index_stride, slice_offset : slice_offset, accumulate : accumulate, is_combined : is_combined} |
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.
attr和input是分开配置的吧?
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.
已修改
|
/re-run all-failed |
|
/re-run all-failed |
1 similar comment
|
/re-run all-failed |
4cebc8c
into
PaddlePaddle:develop
PR Category
Execute Infrastructure
PR Types
Improvements
Description
GPUIndexElementwiseGetGrad性能:

IndexPutWithSortKernel性能:

torch性能:

pcard-67164