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

Function _numpy_to_worker_0

tests/python/disco/test_session.py:138–142  ·  view source on GitHub ↗
(sess: di.Session, np_array: np.array, device)

Source from the content-addressed store, hash-verified

136
137
138def _numpy_to_worker_0(sess: di.Session, np_array: np.array, device):
139 x_array = sess.empty(np_array.shape, "float32", device=device)
140 host_array = tvm.runtime.tensor(np_array, device=device)
141 sess.copy_to_worker_0(host_array, x_array)
142 return x_array
143
144
145def _numpy_from_worker_0(sess: di.Session, remote_array, shape, dtype):

Callers 3

test_tensorFunction · 0.85
test_vm_moduleFunction · 0.85
test_vm_multi_funcFunction · 0.85

Calls 2

copy_to_worker_0Method · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…