MCPcopy
hub / github.com/apache/tvm / get_global_func

Method get_global_func

python/tvm/runtime/disco/session.py:178–191  ·  view source on GitHub ↗

Get a global function on workers. Parameters ---------- name : str The name of the global function. Returns ------- func : DRef The global packed function

(self, name: str)

Source from the content-addressed store, hash-verified

176 return _ffi_api.SessionGetNumWorkers(self) # type: ignore # pylint: disable=no-member
177
178 def get_global_func(self, name: str) -> DRef:
179 """Get a global function on workers.
180
181 Parameters
182 ----------
183 name : str
184 The name of the global function.
185
186 Returns
187 -------
188 func : DRef
189 The global packed function
190 """
191 return DPackedFunc(_ffi_api.SessionGetGlobalFunc(self, name), self) # type: ignore # pylint: disable=no-member
192
193 def import_python_module(self, module_name: str) -> None:
194 """Import a python module in each worker

Callers 15

_get_cached_methodMethod · 0.95
import_python_moduleMethod · 0.95
existsFunction · 0.80
_conv_find_algoFunction · 0.80
createFunction · 0.80
link_sharedFunction · 0.80
pack_importsFunction · 0.80
has_cutlassFunction · 0.80
_extract_arg_idxFunction · 0.80
_convert_call_tirMethod · 0.80

Calls 1

DPackedFuncClass · 0.85

Tested by 15

verifyFunction · 0.64
test_batch_matmulFunction · 0.64
verifyFunction · 0.64
verify_group_gemmFunction · 0.64
verifyFunction · 0.64
test_localFunction · 0.64
test_rpcFunction · 0.64
test_bodyFunction · 0.64
set_global_funcFunction · 0.64