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

Method main

tests/python/relax/test_transform_lambda_lift.py:69–80  ·  view source on GitHub ↗
(x1: R.Tensor((10, 5), "float32"), y1: R.Tensor((10, 5), "float32"))

Source from the content-addressed store, hash-verified

67 class Before:
68 @R.function
69 def main(x1: R.Tensor((10, 5), "float32"), y1: R.Tensor((10, 5), "float32")) -> R.Tensor(
70 (10, 5), "float32"
71 ):
72 @R.function
73 def inner(
74 x2: R.Tensor((10, 5), "float32"), y2: R.Tensor((10, 5), "float32")
75 ) -> R.Tensor((10, 5), "float32"):
76 s: R.Tensor((10, 5), "float32") = R.add(x2, y2)
77 return s
78
79 gv1: R.Tensor((10, 5), "float32") = inner(x1, y1)
80 return gv1
81
82 before = Before
83 expected = Expected

Callers 1

Calls 4

innerFunction · 0.85
outer_funcFunction · 0.85
while_loopFunction · 0.85
TensorMethod · 0.80

Tested by

no test coverage detected