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

Function test_sum_keepdims

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

Source from the content-addressed store, hash-verified

343
344@tvm.testing.parametrize_targets("llvm")
345def test_sum_keepdims(target, dev):
346 data1_numpy = np.random.uniform(0, 16, (3, 3)).astype(np.float32)
347 relax_check_gradients(relax.op.sum, [data1_numpy], target, dev, keepdims=True, axis=1)
348
349
350@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…