Skip to content

Commit

Permalink
enable the onnx tests after PR apache#8274 merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew committed Sep 15, 2021
1 parent 9bc4dc0 commit 9e06d69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 5 additions & 1 deletion python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ class onnx_input(list):

def __getitem__(self, item):
if isinstance(item, slice):
indices = list(range(item.stop)[item])
if item.stop == None:
stop = len(self)
else:
stop = item.stop
indices = list(range(stop)[item])
return [self[i] for i in indices]
if isinstance(item, int):
return list(self)[item] if item < len(self) else None
Expand Down
6 changes: 1 addition & 5 deletions tests/python/frontend/onnx/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -4145,11 +4145,7 @@ def verify_nms(
)


# @tvm.testing.parametrize_targets
@pytest.mark.skip(
"Test regressed due to not being run in CI"
+ " tracked here: https://github.com/apache/tvm/pull/8274"
)
@tvm.testing.parametrize_targets
def test_loop(target, dev):
def verify_cond_loop():
y_in = helper.make_tensor_value_info("y_in", TensorProto.FLOAT, [1])
Expand Down

0 comments on commit 9e06d69

Please sign in to comment.