-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add implementation of WebGPU EP #22591
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
48b998e
to
ed32824
Compare
", Actual: ", shape.NumDimensions()); | ||
|
||
std::vector<uint32_t> dims(expected_rank); | ||
std::vector<uint32_t> stride(expected_rank - 1); |
Check warning
Code scanning / PREfast
Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). Warning
std::vector<uint32_t> stride(expected_rank - 1); | ||
for (size_t j = 0; j < expected_rank; ++j) { | ||
dims[j] = gsl::narrow<uint32_t>(shape[j]); | ||
if (j < expected_rank - 1) { |
Check warning
Code scanning / PREfast
Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). Warning
Description
This PR adds the actual implementation of the WebGPU EP based on #22318.
This change includes the following:
core framework of WebGPU EP
Kernel implementation
Build, test and CI pipeline integration
--use_external_dawn
build flag.This change does not include: