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

Function _assert_run_result_same

tests/python/relax/test_training_optimizer_numeric.py:61–64  ·  view source on GitHub ↗
(tvm_func: Callable, np_func: Callable, np_inputs: list)

Source from the content-addressed store, hash-verified

59
60
61def _assert_run_result_same(tvm_func: Callable, np_func: Callable, np_inputs: list):
62 result = _tvm_to_numpy(tvm_func(*[_numpy_to_tvm(i) for i in np_inputs]))
63 expected = np_func(*np_inputs)
64 _assert_allclose_nested(result, expected)
65
66
67@tvm.testing.parametrize_targets("llvm")

Callers 1

_test_optimizerFunction · 0.85

Calls 4

np_funcFunction · 0.85
_assert_allclose_nestedFunction · 0.85
_tvm_to_numpyFunction · 0.70
_numpy_to_tvmFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…