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

Method main

tests/python/relax/test_tvmscript_parser.py:1153–1158  ·  view source on GitHub ↗
(x: R.Tensor((10, 5), "float32"))

Source from the content-addressed store, hash-verified

1151
1152 @R.function
1153 def main(x: R.Tensor((10, 5), "float32")):
1154 cls = Mod0
1155 inner = cls.foo
1156 gv1 = inner(x)
1157 gv2 = Mod0.foo(x)
1158 return (inner, gv1, gv2)
1159
1160 @I.ir_module(s_tir=True)
1161 class Mod1:

Callers

nothing calls this directly

Calls 3

innerFunction · 0.85
TensorMethod · 0.80
fooMethod · 0.45

Tested by

no test coverage detected