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

Function foo

tests/python/relax/test_tvmscript_parser_op_linear_algebra.py:39–43  ·  view source on GitHub ↗
(
        x: R.Tensor((2, 3, 4, 5), "float32"), y: R.Tensor((6, 2, 3, 5, 7), "float32")
    )

Source from the content-addressed store, hash-verified

37def test_matmul():
38 @R.function
39 def foo(
40 x: R.Tensor((2, 3, 4, 5), "float32"), y: R.Tensor((6, 2, 3, 5, 7), "float32")
41 ) -> R.Tensor((6, 2, 3, 4, 7), "float32"):
42 gv: R.Tensor((6, 2, 3, 4, 7), "float32") = R.matmul(x, y)
43 return gv
44
45 x = relax.Var("x", R.Tensor((2, 3, 4, 5), "float32"))
46 y = relax.Var("y", R.Tensor((6, 2, 3, 5, 7), "float32"))

Callers

nothing calls this directly

Calls 3

TensorMethod · 0.80
einsumMethod · 0.80
matmulMethod · 0.45

Tested by

no test coverage detected