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

Function test_string_obj

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

Source from the content-addressed store, hash-verified

199
200@pytest.mark.parametrize("session_kind", _all_session_kinds)
201def test_string_obj(session_kind):
202 num_workers = 4
203 sess = session_kind(num_workers=num_workers)
204 func: di.DPackedFunc = sess.get_global_func("tests.disco.str_obj")
205 result: di.DRef = func(String("hello"))
206
207 for i in range(num_workers):
208 value = result.debug_get_from_remote(i)
209 assert isinstance(value, str)
210 assert value == "hello_suffix"
211
212
213@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…