(
value: Expr, device_mesh: py_str | DeviceMesh, placement: py_str | Placement
)
| 161 | |
| 162 | |
| 163 | def 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) |
nothing calls this directly
no test coverage detected
searching dependent graphs…