Skip to content

[webgpu] Move the early return after copying for ScatterND #25345

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 2 commits into from
Jul 9, 2025

Conversation

qjia7
Copy link
Contributor

@qjia7 qjia7 commented Jul 9, 2025

Description

For ScatterND, if the indices are empty (nothing to update), it becomes a copy operation. So we should move the early return after copying.

@qjia7 qjia7 requested review from guschmue and fs-eire July 9, 2025 12:10
@guschmue guschmue merged commit bc0256f into main Jul 9, 2025
91 checks passed
@guschmue guschmue deleted the scatterND_zero branch July 9, 2025 15:18
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.

2 participants