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

Function test_mean

tests/python/relax/test_op_gradient_numeric.py:351–353  ·  view source on GitHub ↗
(target, dev)

Source from the content-addressed store, hash-verified

349
350@tvm.testing.parametrize_targets("llvm")
351def test_mean(target, dev):
352 data1_numpy = np.random.uniform(0, 16, (3, 3)).astype(np.float32)
353 relax_check_gradients(relax.op.mean, [data1_numpy], target, dev)
354
355
356@tvm.testing.parametrize_targets("llvm")

Callers

nothing calls this directly

Calls 3

relax_check_gradientsFunction · 0.85
uniformMethod · 0.80
astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…