-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Hello, I'm trying to use TensorRT for tuning my model. For that matter, I use partition_for_tensorrt before building the model. However, this function fails when processing strided_slice ops. This might be related to strided_slice ops, where fewer axes than tensor dimensions are sliced, e.g., %435 = strided_slice(%376, begin=[0i64], end=[1i64], strides=[1i64], axes=[0i64]) with input tensors of 4 dims. I suspect that these ops will fail since the for loop
tvm/python/tvm/relay/op/contrib/tensorrt.py
Lines 712 to 713 in 7e3dc45
| for i in range(0, len(args[0].checked_type.shape)): | |
| begin = int(attrs.begin[i]) |
Expected behavior
I expected the partition_for_tensorrt function to return without error.
Actual behavior
IndexError in strided_slice_checker:
tvm/python/tvm/relay/op/contrib/tensorrt.py
Line 713 in 7e3dc45
| begin = int(attrs.begin[i]) |
tvm/python/tvm/runtime/container.py
Line 57 in 7e3dc45
| raise IndexError("Index out of range. size: {}, got index {}".format(length, idx)) |
Environment
OS: Ubuntu 20.04, Kernel 5.15
TVM: built from master branch, commit 0e046da
Triage
- needs-triage
- byoc:ethosu