-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webgpu: Tighten the condition to go the plain argminmax (#7742)
* webgpu: Tighten the condition to go the plain argminmax In PR #6778, I ever added the plain argminmax shader to improve the perf of ArgMax[1, 1025, 2049, 19]. However, I accidently added the output size condition, which was not verified. This PR removes that condition and only goes to plain argminmax when the reduce length is very small(<32). With this change, ArgMax[1,513,513,151] becomes 7.19ms from 13.24ms in DeepLabV3-ade20k on Intel ADL.
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters