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

Function test_ones_zeros_like

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

Source from the content-addressed store, hash-verified

294
295@tvm.testing.parametrize_targets("llvm")
296def test_ones_zeros_like(target, dev, like_op_func):
297 data_numpy = np.random.uniform(-1, 1, (3, 3)).astype(np.float32)
298 relax_check_gradients(like_op_func, [data_numpy], target, dev, ignore_grads=[0])
299
300
301@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…