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

[Relay][Frontend][Onnx] Add support for Size op in Onnx frontend. #7031

Merged
merged 2 commits into from
Dec 4, 2020
Merged
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
Prev Previous commit
Simplify target testing.
  • Loading branch information
jwfromm committed Dec 4, 2020
commit e86bc1816972f1900aded4b0cd6eb82f83310a46
5 changes: 1 addition & 4 deletions tests/python/frontend/onnx/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -3906,10 +3906,7 @@ def verify_size(indata):

model = helper.make_model(graph, producer_name="size_test")

for target, _ in tvm.testing.enabled_targets():
verify_with_ort_with_inputs(
model, [indata], targets=[target], dtype="int64", use_vm=True, opset=11
)
verify_with_ort_with_inputs(model, [indata], dtype="int64", use_vm=True, opset=11)

input_data = np.array([[1, 0], [1, 1]], dtype=np.int64)
verify_size(input_data)
Expand Down