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

Method main

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

Source from the content-addressed store, hash-verified

1161 class Mod1:
1162 @R.function
1163 def main(x: R.Tensor((10, 5), "float32")):
1164 cls = Mod1
1165 inner = cls.foo
1166 gv1 = inner(x)
1167 gv2 = Mod1.foo(x)
1168 return (inner, gv1, gv2)
1169
1170 @R.function
1171 def foo(x: R.Tensor((10, 5), "float32")) -> R.Tensor((10, 5), "float32"):

Callers

nothing calls this directly

Calls 3

innerFunction · 0.85
TensorMethod · 0.80
fooMethod · 0.45

Tested by

no test coverage detected