Skip to content

Conversation

@danghoangnhan
Copy link

Replaced np.where(temp.cpu().numpy() == True) with paddle.where(temp == True)
to maintain computation on the PaddlePaddle device (GPU/CPU) without converting to NumPy.
This avoids unnecessary data transfer between devices and keeps the operation within Paddle’s tensor graph.

@paddle-bot
Copy link

paddle-bot bot commented Nov 10, 2025

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Nov 10, 2025

CLA assistant check
All committers have signed the CLA.

@paddle-bot paddle-bot bot added the contrib/contributor Contributor-related discussion or task. label Nov 10, 2025
@danghoangnhan danghoangnhan marked this pull request as draft November 13, 2025 07:44
@danghoangnhan danghoangnhan marked this pull request as ready for review November 13, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contrib/contributor Contributor-related discussion or task. contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants