MCPcopy Create free account
hub / github.com/apache/tvm / glob_func_1

Method glob_func_1

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

Source from the content-addressed store, hash-verified

293 class Before:
294 @R.function
295 def glob_func_1(
296 x1: R.Tensor((10, 5), "float32"), y1: R.Tensor((10, 5), "float32")
297 ) -> R.Tensor((10, 5), "float32"):
298 @R.function
299 def inner(
300 x2: R.Tensor((10, 5), "float32"), y2: R.Tensor((10, 5), "float32")
301 ) -> R.Tensor((10, 5), "float32"):
302 s: R.Tensor((10, 5), "float32") = R.add(x2, y2)
303 return s
304
305 gv1: R.Tensor((10, 5), "float32") = inner(x1, y1)
306 return gv1
307
308 @R.function
309 def glob_func_2(

Callers

nothing calls this directly

Calls 2

innerFunction · 0.85
TensorMethod · 0.80

Tested by

no test coverage detected