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

Function test_full_like

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

Source from the content-addressed store, hash-verified

300
301@tvm.testing.parametrize_targets("llvm")
302def test_full_like(target, dev):
303 data_numpy = np.random.uniform(-1, 1, (3, 3)).astype(np.float32)
304 fill_value = np.random.uniform(-1, 1, ()).astype(np.float32)
305 relax_check_gradients(
306 relax.op.full_like, [data_numpy, fill_value], target, dev, ignore_grads=[0, 1]
307 )
308
309
310(create_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…