MCPcopy Create free account
hub / github.com/apache/tvm / redistribute

Function redistribute

python/tvm/relax/script/builder/distributed/ir.py:163–170  ·  view source on GitHub ↗
(
    value: Expr, device_mesh: py_str | DeviceMesh, placement: py_str | Placement
)

Source from the content-addressed store, hash-verified

161
162
163def redistribute(
164 value: Expr, device_mesh: py_str | DeviceMesh, placement: py_str | Placement
165) -> Expr:
166 if isinstance(device_mesh, py_str):
167 device_mesh = _lookup_device_mesh(device_mesh)
168 if isinstance(placement, py_str):
169 placement = Placement.from_text(placement)
170 return _redistribute(value, device_mesh, placement)

Callers

nothing calls this directly

Calls 2

_lookup_device_meshFunction · 0.85
from_textMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…