MCPcopy
hub / github.com/apache/tvm / main

Method main

tests/python/relax/test_frontend_from_fx.py:796–806  ·  view source on GitHub ↗
(
            inp_0: R.Tensor((4, 128, 512), dtype="float32"),
            inp_1: R.Tensor((4, 128, 256), dtype="float32"),
            inp_2: R.Tensor((4, 256, 512), dtype="float32"),
        )

Source from the content-addressed store, hash-verified

794 class Expected1:
795 @R.function
796 def main(
797 inp_0: R.Tensor((4, 128, 512), dtype="float32"),
798 inp_1: R.Tensor((4, 128, 256), dtype="float32"),
799 inp_2: R.Tensor((4, 256, 512), dtype="float32"),
800 ) -> R.Tensor((4, 128, 512), dtype="float32"):
801 with R.dataflow():
802 lv: R.Tensor((4, 128, 512), dtype="float32") = R.matmul(inp_1, inp_2)
803 lv1: R.Tensor((4, 128, 512), dtype="float32") = R.add(lv, inp_0)
804 gv: R.Tensor((4, 128, 512), dtype="float32") = lv1
805 R.output(gv)
806 return gv
807
808 @tvm.script.ir_module
809 class Expected2:

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
einsumMethod · 0.80
squeezeMethod · 0.80
argmaxMethod · 0.80
argminMethod · 0.80
meanMethod · 0.80
flipMethod · 0.80
maxMethod · 0.80
matmulMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected