Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ONNX] enable the onnx tests after PR #8274 merged #9019

Merged
merged 2 commits into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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