MCPcopy Index your code
hub / github.com/apache/tvm / popen_check

Function popen_check

tests/python/runtime/test_runtime_module_load.py:129–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 f.export_library(path_dso, fcompile=cc.cross_compiler("g++"))
128
129 def popen_check():
130 import tvm
131
132 f1 = tvm.runtime.load_module(path_dso)
133 a = tvm.runtime.tensor(np.random.uniform(size=1024).astype(A.dtype), dev)
134 b = tvm.runtime.tensor(np.zeros(1024, dtype=A.dtype), dev)
135 f1(a, b)
136 np.testing.assert_equal(b.numpy(), a.numpy() + 1)
137
138 # system lib should be loaded in different process
139 worker = popen_pool.PopenWorker()

Callers

nothing calls this directly

Calls 6

uniformMethod · 0.80
numpyMethod · 0.80
system_libMethod · 0.80
load_moduleMethod · 0.45
astypeMethod · 0.45
zerosMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…