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

Method from_text

python/tvm/relax/distributed/struct_info.py:98–111  ·  view source on GitHub ↗

Create a placement from a text string. Parameters ---------- text: str The text string. Returns ------- placement: Placement The placement.

(text: str)

Source from the content-addressed store, hash-verified

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")

Callers 4

DTensorFunction · 0.80
annotate_shardingFunction · 0.80
redistributeFunction · 0.80
test_dtensor_struct_infoFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_dtensor_struct_infoFunction · 0.64