Create a placement from a text string. Parameters ---------- text: str The text string. Returns ------- placement: Placement The placement.
(text: str)
| 96 | |
| 97 | @staticmethod |
| 98 | def from_text(text: str) -> "Placement": |
| 99 | """Create a placement from a text string. |
| 100 | |
| 101 | Parameters |
| 102 | ---------- |
| 103 | text: str |
| 104 | The text string. |
| 105 | |
| 106 | Returns |
| 107 | ------- |
| 108 | placement: Placement |
| 109 | The placement. |
| 110 | """ |
| 111 | return _ffi_api.PlacementFromText(text) |
| 112 | |
| 113 | |
| 114 | @tvm_ffi.register_object("relax.DTensorStructInfo") |
no outgoing calls