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

Function expected2

tests/python/relax/test_transform_combine_parallel_matmul.py:108–123  ·  view source on GitHub ↗
(
        x: R.Tensor((2, 1024, 640), dtype="float32"),
        y: R.Tensor((640, 640), dtype="float32"),
        y_1: R.Tensor((640, 640), dtype="float32"),
        y_2: R.Tensor((640, 640), dtype="float32"),
    )

Source from the content-addressed store, hash-verified

106
107 @R.function
108 def expected2(
109 x: R.Tensor((2, 1024, 640), dtype="float32"),
110 y: R.Tensor((640, 640), dtype="float32"),
111 y_1: R.Tensor((640, 640), dtype="float32"),
112 y_2: R.Tensor((640, 640), dtype="float32"),
113 ) -> R.Tensor((2, 3072, 640), dtype="float32"):
114 with R.dataflow():
115 lv = R.concat((y, y_1, y_2), axis=1)
116 lv1 = R.matmul(x, lv, out_dtype="float32")
117 lv2 = R.split(lv1, indices_or_sections=[640, 1280], axis=2)
118 lv_1 = lv2[0]
119 lv1_1 = lv2[1]
120 lv2_1 = lv2[2]
121 lv3 = R.concat((lv_1, lv1_1, lv2_1), axis=1)
122 R.output(lv3)
123 return lv3
124
125 tvm.ir.assert_structural_equal(mod["main"], expected2.with_attr("global_symbol", "main"))
126

Callers

nothing calls this directly

Calls 8

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
matmulMethod · 0.45
splitMethod · 0.45
addMethod · 0.45
geluMethod · 0.45
reluMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…