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

Method fused_function

tests/python/relax/test_transform_fuse_tir.py:761–768  ·  view source on GitHub ↗
(x: R.Tensor([16, 32], "float32"))

Source from the content-addressed store, hash-verified

759
760 @R.function(private=True)
761 def fused_function(x: R.Tensor([16, 32], "float32")) -> R.Tensor([16, 32], dtype="float32"):
762 R.func_attr({"Primitive": True})
763 cls = Before
764 with R.dataflow():
765 y = R.call_tir(cls.dynamic_tir_kernel, [x], out_sinfo=R.Tensor([16, 32], "float32"))
766 z = R.call_tir(cls.dynamic_tir_kernel, [y], out_sinfo=R.Tensor([16, 32], "float32"))
767 R.output(z)
768 return z
769
770 @R.function
771 def main(x: R.Tensor([16, 32], "float32")) -> R.Tensor([16, 32], dtype="float32"):

Callers 1

mainMethod · 0.45

Calls 4

TensorMethod · 0.80
dataflowMethod · 0.80
call_tirMethod · 0.80
outputMethod · 0.80

Tested by

no test coverage detected