Skip to content

Commit

Permalink
Update test_nms_match_small.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yinfan98 authored Oct 8, 2023
1 parent f203be5 commit 2fb9984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_ops/test_nms_match_small.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def forward(self, boxes, scores, iou_threshold, score_threshold):


@pytest.mark.skipif(
reason='Need to build onnxrumtime custom op', condition=get_ops_path == '')
reason='Need to build onnxrumtime custom op',
condition=get_ops_path() == '')
def test_nms_match():
print('Running compilation...')
# here is a PyTorch test
Expand Down Expand Up @@ -116,3 +117,4 @@ def test_nms_match():
numpy.array(torch_output),
numpy.array(ort_output[0])), 'list are not equal'
os.remove(temp_onnx.name)

0 comments on commit 2fb9984

Please sign in to comment.