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

Function test_get_valid_counts_invalid_indices

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

Source from the content-addressed store, hash-verified

268
269
270def test_get_valid_counts_invalid_indices():
271 bb = relax.BlockBuilder()
272 data = relax.Var("data", R.Tensor((2, 10, 6), "float32"))
273 with pytest.raises(ValueError):
274 bb.normalize(relax.op.vision.get_valid_counts(data, score_index=6))
275 with pytest.raises(ValueError):
276 bb.normalize(relax.op.vision.get_valid_counts(data, id_index=6))
277 with pytest.raises(ValueError):
278 bb.normalize(relax.op.vision.get_valid_counts(data, id_index=-2))
279
280
281def test_nms_op_correctness():

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…