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

Function test_binary_cmp

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

Source from the content-addressed store, hash-verified

276
277@tvm.testing.parametrize_targets("llvm")
278def test_binary_cmp(target, dev, binary_cmp_op_func):
279 data1_numpy = np.random.uniform(1, 2, (3, 3)).astype(np.float32)
280 data2_numpy = np.random.uniform(1, 2, (3, 3)).astype(np.float32)
281 relax_check_gradients(
282 binary_cmp_op_func, [data1_numpy, data2_numpy], target, dev, ignore_grads=[0, 1]
283 )
284
285
286##################### Create #####################

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…