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

Function test_nms_wrong_ndim

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

Source from the content-addressed store, hash-verified

352
353
354def test_nms_wrong_ndim():
355 bb = relax.BlockBuilder()
356 data = relax.Var("data", R.Tensor((10, 6), "float32"))
357 valid_count = relax.Var("valid_count", R.Tensor((2,), "int32"))
358 indices = relax.Var("indices", R.Tensor((2, 10), "int32"))
359 with pytest.raises(ValueError):
360 bb.normalize(relax.op.vision.non_max_suppression(data, valid_count, indices))
361
362
363def test_nms_wrong_valid_count_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…