Skip to content

Conversation

@LittleHeroZZZX
Copy link
Contributor

@LittleHeroZZZX LittleHeroZZZX commented Jul 30, 2025

PR Category

Execute Infrastructure

PR Types

Improvements

Description

pcard-67164

  1. getitem 中 bool tensor 走 nonzero+indexget,以避免原先两次 transpose 开销。
  2. 没开 stride 情况下 getitem 将连续的 n 维被布尔索引的维度重排到前面,而非原本只重排一个维度。

@paddle-bot
Copy link

paddle-bot bot commented Jul 30, 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.

@LittleHeroZZZX LittleHeroZZZX changed the title 【不 review】 slice [Slice] Dispatch bool-only combined case to non-zero and elementwise_get Jul 31, 2025
@LittleHeroZZZX
Copy link
Contributor Author

/re-run all-failed

@LittleHeroZZZX
Copy link
Contributor Author

/re-run all-failed

1 similar comment
@LittleHeroZZZX
Copy link
Contributor Author

/re-run all-failed

@LittleHeroZZZX
Copy link
Contributor Author

/re-run all-failed

Copy link
Contributor

@changeyoung98 changeyoung98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@changeyoung98 changeyoung98 merged commit 3beb3b3 into PaddlePaddle:develop Aug 4, 2025
71 of 72 checks passed
@LittleHeroZZZX LittleHeroZZZX deleted the nonzero_indexget branch November 11, 2025 06:13
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