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

Function test_get_valid_counts_wrong_ndim

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

Source from the content-addressed store, hash-verified

261
262
263def test_get_valid_counts_wrong_ndim():
264 bb = relax.BlockBuilder()
265 data = relax.Var("data", R.Tensor((10, 6), "float32"))
266 with pytest.raises(ValueError):
267 bb.normalize(relax.op.vision.get_valid_counts(data))
268
269
270def test_get_valid_counts_invalid_indices():

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…