MCPcopy Index your code
hub / github.com/apache/tvm / functions_items

Method functions_items

python/tvm/ir/module.py:71–81  ·  view source on GitHub ↗

Get items in self.functions.items() in alphabetical order. Returns ------- items: List[Tuple[GlobalVar, Function]] The functions items.

(self)

Source from the content-addressed store, hash-verified

69 return _ffi_api.Module_Clone(self)
70
71 def functions_items(self):
72 """Get items in self.functions.items() in alphabetical order.
73
74 Returns
75 -------
76 items: List[Tuple[GlobalVar, Function]]
77 The functions items.
78 """
79 items = list(self.functions.items())
80 items.sort(key=lambda item: str(item[0].name_hint))
81 return items
82
83 def __setitem__(self, var, val):
84 """Add a mapping to the module.

Callers 15

convertMethod · 0.80
_compile_functionsMethod · 0.80
detach_paramsFunction · 0.80
transform_moduleMethod · 0.80
transform_moduleMethod · 0.80
annotate_workspaceFunction · 0.80
annotate_workspaceFunction · 0.80
partition_for_cutlassFunction · 0.80
estimateMethod · 0.80
transform_moduleMethod · 0.80
transform_moduleMethod · 0.80

Calls 2

strFunction · 0.85
itemsMethod · 0.45

Tested by 6

visitMethod · 0.64
visitMethod · 0.64
visitMethod · 0.64
test_mlpFunction · 0.64
test_mlp_with_tupleFunction · 0.64
test_decoder_layer_tirFunction · 0.64