You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Onnx Slice operator is not implemented.
I have just started looking at the WGSL code and may be able to work this out slowly but wanted to know if there is anything that is required before being able to implement the operator?
The text was updated successfully, but these errors were encountered:
Hi! The Slice operator should be fairly straightforward to implement - I suggest you to take a look at the implementation of e.g. the Gather op which is a bit more complicated (or e.g. Softmax to see how to deal with the axis logic). Basically, you would first calculate the size of the output, then write a shader that (for each element of the output, but chunked for efficiency) copies the relevant elements from the source to the output vector.
I will be happy to assist you and review a PR. We do require contributions to be licensed "MIT OR Apache-2.0" and before merging I would also like to see a test for the op included (as well as the relevant ONNX backend op tests enabled).
Note that shape inference for Slice is already implemented here so that's one thing you don't have to worry about anymore :-)
Currently the Onnx Slice operator is not implemented.
I have just started looking at the WGSL code and may be able to work this out slowly but wanted to know if there is anything that is required before being able to implement the operator?
The text was updated successfully, but these errors were encountered: