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

Function _numpy_to_tvm

tests/python/relax/test_training_optimizer_numeric.py:39–42  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

37
38
39def _numpy_to_tvm(data):
40 if isinstance(data, list | tuple):
41 return [_numpy_to_tvm(_data) for _data in data]
42 return tvm.runtime.tensor(data)
43
44
45def _tvm_to_numpy(data):

Callers 1

_assert_run_result_sameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…