[Bug] relax onnx frontend can not support dynamic slice #17535
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first 😸
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
Expected behavior
I have a onnx model which only contains a single slice op as below
And I test it with onnxruntime using the data from https://onnx.ai/onnx/operators/onnx__Slice.html
And the answer is right.
And I think relax can run this model too, but it failed.
When I build it with relax onnx frontend, it reported
which is reported by
onnx_frontend,py
However, I find that a relax op called
dynamic_strided_slice
exists in https://github.com/apache/tvm/blob/main/python/tvm/relax/op/index.py#L102I wonder why we can not use it in onnx frontend?
And if we can use it, how should we modify the onnx slice op converter.
Thanks a lot.
Environment
I used the latest main branch of tvm and installed from source on my ubuntu server.
Steps to reproduce
Here is a minmal python scripts to build onnx model and test on relax
Triage
Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).
The text was updated successfully, but these errors were encountered: