MCPcopy
hub / github.com/apache/tvm / _args_to_numpy

Function _args_to_numpy

python/tvm/testing/runner.py:48–57  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

46
47
48def _args_to_numpy(args):
49 from tvm.runtime import Tensor
50
51 downloaded_args = []
52 for arg in args:
53 if isinstance(arg, Tensor):
54 downloaded_args.append(arg.numpy())
55 else:
56 downloaded_args.append(arg)
57 return downloaded_args
58
59
60def _normalize_export_func(export_func, output_format) -> tuple[Callable, str]:

Callers 2

local_runFunction · 0.85
rpc_runFunction · 0.85

Calls 2

numpyMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…