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

Function _shard_dim_0

tests/python/disco/test_loader.py:52–54  ·  view source on GitHub ↗
(src, num_shards, tgt)

Source from the content-addressed store, hash-verified

50
51@register_global_func("tests.disco.shard_dim_0", override=True)
52def _shard_dim_0(src, num_shards, tgt):
53 s_0, s_1 = src.shape
54 tgt.copyfrom(src.numpy().reshape(num_shards, s_0 // num_shards, s_1))
55
56
57@register_global_func("tests.disco.shard_dim_1", override=True)

Callers

nothing calls this directly

Calls 3

copyfromMethod · 0.80
numpyMethod · 0.80
reshapeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…