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

Function test_popen_initializer

tests/python/support/test_popen_pool.py:116–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115
116def test_popen_initializer():
117 initargs = [1, 2, 3]
118 proc = PopenWorker(initializer=initializer, initargs=initargs)
119 proc.send(after_initializer)
120 test_global_state_1, test_global_state_2, test_global_state_3 = proc.recv()
121 assert test_global_state_1 == initargs[0]
122 assert test_global_state_2 == initargs[1]
123 assert test_global_state_3 == initargs[2]
124
125
126def test_popen_worker_recycles_with_initializer():

Callers 1

test_popen_pool.pyFile · 0.85

Calls 3

sendMethod · 0.95
recvMethod · 0.95
PopenWorkerClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…