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

Function test_triu

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

Source from the content-addressed store, hash-verified

322
323@tvm.testing.parametrize_targets("llvm")
324def test_triu(target, dev):
325 data_numpy = np.random.uniform(-1, 1, (3, 3)).astype(np.float32)
326 relax_check_gradients(relax.op.triu, [data_numpy], target, dev, k=0)
327
328
329##################### Statistical #####################

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…