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

Class VMExecutable

python/tvm/relax/vm_build.py:29–48  ·  view source on GitHub ↗

The virtual machine executable object emitted by the VM compiler or the ExecBuilder.

Source from the content-addressed store, hash-verified

27
28
29class VMExecutable(Executable):
30 """The virtual machine executable object emitted by the VM compiler or the ExecBuilder."""
31
32 def __init__(self, mod: tvm.runtime.Module):
33 super().__init__(mod)
34 self._stats = self.mod["stats"]
35 self._as_text = self.mod["as_text"]
36 self._as_python = self.mod["as_python"]
37
38 def stats(self) -> str:
39 """print the detailed statistics of the executable."""
40 return self._stats()
41
42 def as_text(self) -> str:
43 """print the instructions as text format."""
44 return self._as_text()
45
46 def as_python(self) -> str:
47 """print the instructions as python program."""
48 return self._as_python()
49
50
51def _vmcodegen(

Callers 2

_vmlinkFunction · 0.85
getMethod · 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…