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

Method name_many

python/tvm/script/ir_builder/base.py:183–202  ·  view source on GitHub ↗

Set the name of a list of objects. Parameters ---------- s : List[str] The names of the objects. vs : List[Any] The objects to name. Returns ------- vs : List[Any] The same objects with the names set.

(  # pylint: disable=invalid-name
        s: list[str],
        vs: list[Any],
    )

Source from the content-addressed store, hash-verified

181
182 @staticmethod
183 def name_many( # pylint: disable=invalid-name
184 s: list[str],
185 vs: list[Any],
186 ) -> list[Any]:
187 """Set the name of a list of objects.
188
189 Parameters
190 ----------
191 s : List[str]
192 The names of the objects.
193 vs : List[Any]
194 The objects to name.
195
196 Returns
197 -------
198 vs : List[Any]
199 The same objects with the names set.
200 """
201 assert len(s) == len(vs)
202 return [IRBuilder.name(i, v) for i, v in zip(s, vs)]

Callers 1

test_forFunction · 0.80

Calls 1

nameMethod · 0.45

Tested by 1

test_forFunction · 0.64