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

Function test_binary_arith

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

Source from the content-addressed store, hash-verified

241
242@tvm.testing.parametrize_targets("llvm")
243def test_binary_arith(target, dev, binary_arith_op_func):
244 data1_numpy = np.random.uniform(1, 2, (3, 3)).astype(np.float32)
245 data2_numpy = np.random.uniform(1, 2, (3, 3)).astype(np.float32)
246 relax_check_gradients(binary_arith_op_func, [data1_numpy, data2_numpy], target, dev)
247
248
249(binary_minmax_op_func,) = tvm.testing.parameters(

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…