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

Function test_sum_with_axis

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

Source from the content-addressed store, hash-verified

337
338@tvm.testing.parametrize_targets("llvm")
339def test_sum_with_axis(target, dev):
340 data1_numpy = np.random.uniform(0, 16, (2, 3, 4, 5)).astype(np.float32)
341 relax_check_gradients(relax.op.sum, [data1_numpy], target, dev, axis=[1, 3])
342
343
344@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…