Skip to content

[PIR slice] Optimize bool index logic for setitem and getitem #72644

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 3 commits into from
May 12, 2025

Conversation

changeyoung98
Copy link
Contributor

PR Category

Execute Infrastructure

PR Types

Improvements

Description

pcard-67164

For setitem:

See #72617
image

For getitem:

Add single bool branch

  • True: use unsqueeze + copy
  • False: empty
paddle/torch before paddle/torch after
True 3.205 0.885~1.164
False 20.906 8.720

Copy link

paddle-bot bot commented May 9, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@changeyoung98 changeyoung98 merged commit d0dc9c5 into PaddlePaddle:develop May 12, 2025
59 of 63 checks passed
@changeyoung98 changeyoung98 deleted the czy-slice branch May 12, 2025 06:23
GITD245 pushed a commit to GITD245/Paddle that referenced this pull request May 14, 2025
…Paddle#72644)

* add single bool index logic && optimize set_tensor_value_op

* add single bool branch for getitem

---------

Co-authored-by: Eddie-Wang1120 <wangjinheng1120@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants