MCPcopy Create free account
hub / github.com/apache/tvm / test_nms_wrong_valid_count_ndim

Function test_nms_wrong_valid_count_ndim

tests/python/relax/test_op_vision.py:363–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

361
362
363def test_nms_wrong_valid_count_ndim():
364 bb = relax.BlockBuilder()
365 data = relax.Var("data", R.Tensor((2, 10, 6), "float32"))
366 valid_count = relax.Var("valid_count", R.Tensor((2, 1), "int32"))
367 indices = relax.Var("indices", R.Tensor((2, 10), "int32"))
368 with pytest.raises(ValueError):
369 bb.normalize(relax.op.vision.non_max_suppression(data, valid_count, indices))
370
371
372def test_nms_wrong_indices_ndim():

Callers

nothing calls this directly

Calls 2

normalizeMethod · 0.95
TensorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…