-
Notifications
You must be signed in to change notification settings - Fork 48
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
Unsqueeze operator is missing (so add unsqueeze, or better yet, delete squeeze) #296
Comments
Thanks for the details, especially the model list is so helpful , @fdwr ! One question, given WebNN only supports static tensor shape and would be used as framework backend, could the frameworks map the On the other hand, unsqueeze seems not to be widely supported by native ML APIs, such as DirectML and NNAPI. Did I miss anything? |
@huningxin Yep, squeeze/unsqueeze/flatten/reshape are all in the same category of generic reshaping operators that do not modify the actual data, just reinterpret the tensor dimensions, and they all support static shape scenarios.
There is no |
Thanks @fdwr !
There is a section of guidelines for new operations in WebNN spec that says "prefer primitives over new high level operations but consider performance consequences". As your sharing of its functionality,
+1. Probably we should exclude both |
Note I've implemented |
Current thinking (per #375 (comment)) is now to remove FYI @wacky6. "Remove squeeze sgtm :)" |
Can this be closed off now that #478 is merged? |
The squeeze operator is present, but its counterpart unsqueeze is missing (see ONNX / PyTorch / TF nearest equivalent), which ought to be included for parity with squeeze and because many popular models use it:
The text was updated successfully, but these errors were encountered: