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

Function test_string

tests/python/disco/test_session.py:190–197  ·  view source on GitHub ↗
(session_kind)

Source from the content-addressed store, hash-verified

188
189@pytest.mark.parametrize("session_kind", _all_session_kinds)
190def test_string(session_kind):
191 num_workers = 4
192 sess = session_kind(num_workers=num_workers)
193 func: di.DPackedFunc = sess.get_global_func("tests.disco.str")
194 result: di.DRef = func("hello")
195
196 for i in range(num_workers):
197 assert result.debug_get_from_remote(i) == "hello_suffix"
198
199
200@pytest.mark.parametrize("session_kind", _all_session_kinds)

Callers

nothing calls this directly

Calls 3

get_global_funcMethod · 0.80
debug_get_from_remoteMethod · 0.80
funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…