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

Class DPackedFunc

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

A PackedFunc in a Disco session.

Source from the content-addressed store, hash-verified

76
77
78class DPackedFunc(DRef):
79 """A PackedFunc in a Disco session."""
80
81 # tvm_ffi Object subclasses cannot store Python attributes by default
82 # (the metaclass sets `__slots__ = ()`); list the field(s) we store here.
83 __slots__ = ("session",)
84
85 def __init__(self, dref: DRef, session: "Session") -> None:
86 self.__move_handle_from__(dref)
87 self.session = session
88
89 def __call__(self, *args) -> DRef:
90 return self.session.call_packed(self, *args)
91
92
93class DModule(DRef):

Callers 2

__getitem__Method · 0.85
get_global_funcMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…