-
Notifications
You must be signed in to change notification settings - Fork 46
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
split
into sizes are not widely supported
#392
Comments
Although having a
Options:
Note, I've seen customer models that contain a split with over a hundred outputs, and needing the caller to output a hundred+ individual WebNN |
Does XNNPack support variable size windows for |
FWIW the XNNPACK backend has since been removed from Chromium. All of the remaining backends currently being explored - CoreML, DML, and TFLite - support variable-sized split-by-size Since any future backend we may want to implement WebNN on top of can emulate variable-sized splits if necessary, I say we close this issue. Thoughts? |
Closing, thanks for the update! |
This issue was raised by @wacky6 in Chromium CL review. Thanks Jiewei again!
WebNN
split
supports two variants, "number of split" (whensplits
argument is anunsigned long
) or "split into sizes" (whensplits
argument is asequence<unsigned long>
).When implementing this op, we observed that there are some backends don't support "split into sizes" variant, e.g. XNNPACK. For this case, we may follow the sample code that decomposes the
split
into multipleslice
s. Or just throw error and leave to framework to handle. There are tradeoffs, we'd like to get WG's inputs on:The text was updated successfully, but these errors were encountered: