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

Method main

tests/python/relax/test_transform_convert_dataflow.py:86–92  ·  view source on GitHub ↗
(x: R.Tensor, y: R.Tensor)

Source from the content-addressed store, hash-verified

84 class Expected:
85 @R.function
86 def main(x: R.Tensor, y: R.Tensor) -> R.Tensor:
87 with R.dataflow():
88 z = R.add(x, y)
89 w = R.multiply(z, y)
90 v = R.add(w, x)
91 R.output(v)
92 return v
93
94 After = relax.transform.ConvertToDataflow()(Before)
95 tvm.ir.assert_structural_equal(After, Expected)

Callers

nothing calls this directly

Calls 9

inner_funcFunction · 0.85
dataflowMethod · 0.80
outputMethod · 0.80
subtractMethod · 0.80
addMethod · 0.45
multiplyMethod · 0.45
printMethod · 0.45
divideMethod · 0.45
extraMethod · 0.45

Tested by

no test coverage detected