Skip to content

Commit

Permalink
[TRT][BYOC] allow strided_slice ops on selected dimensions (#14142) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AreopagX authored Mar 1, 2023
1 parent e9cf04e commit 6c04ac5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tvm/relay/op/contrib/tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ def strided_slice_checker(
if any([x is not None and x <= 0 for x in attrs.strides]):
logger.info(f"{op_name}: stride must be positive")
return False
for i in range(0, len(args[0].checked_type.shape)):
length: int = len(attrs.axes) if attrs.axes is not None else len(args[0].checked_type.shape)
for i in range(0, length):
begin = int(attrs.begin[i])
if attrs.slice_mode == "end":
end = (
Expand Down

0 comments on commit 6c04ac5

Please sign in to comment.