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

Function test_shape_tuple

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

Source from the content-addressed store, hash-verified

212
213@pytest.mark.parametrize("session_kind", _all_session_kinds)
214def test_shape_tuple(session_kind):
215 num_workers = 4
216 sess = session_kind(num_workers=num_workers)
217 func: di.DPackedFunc = sess.get_global_func("tests.disco.shape_tuple")
218 result: di.DRef = func(Shape([1, 2, 3]))
219 for i in range(num_workers):
220 value = result.debug_get_from_remote(i)
221 assert isinstance(value, Shape)
222 assert list(value) == [1, 2, 3, 4, 5]
223
224
225@pytest.mark.parametrize("session_kind", _all_session_kinds)

Callers

nothing calls this directly

Calls 4

get_global_funcMethod · 0.80
debug_get_from_remoteMethod · 0.80
funcFunction · 0.50
ShapeClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…