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

Method __getitem__

python/tvm/runtime/disco/session.py:104–106  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

102 self.session = session
103
104 def __getitem__(self, name: str) -> DPackedFunc:
105 func = self.session._get_cached_method("ffi.ModuleGetFunction")
106 return DPackedFunc(func(self, name, False), self.session)
107
108
109@register_object("runtime.disco.Session")

Callers

nothing calls this directly

Calls 3

DPackedFuncClass · 0.85
_get_cached_methodMethod · 0.80
funcFunction · 0.50

Tested by

no test coverage detected