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

Method main

tests/python/relax/test_frontend_from_exported_program.py:2634–2645  ·  view source on GitHub ↗
(
            input_1: R.Tensor((4, 128, 256), dtype="float32"),
            input_2: R.Tensor((4, 256, 512), dtype="float32"),
        )

Source from the content-addressed store, hash-verified

2632 class Expected:
2633 @R.function
2634 def main(
2635 input_1: R.Tensor((4, 128, 256), dtype="float32"),
2636 input_2: R.Tensor((4, 256, 512), dtype="float32"),
2637 ) -> R.Tuple(R.Tensor((4, 128, 512), dtype="float32")):
2638 # block 0
2639 with R.dataflow():
2640 lv: R.Tensor((4, 128, 512), dtype="float32") = R.matmul(
2641 input_1, input_2, out_dtype="float32"
2642 )
2643 gv: R.Tuple(R.Tensor((4, 128, 512), dtype="float32")) = (lv,)
2644 R.output(gv)
2645 return gv
2646
2647 example_args = (
2648 torch.randn(4, 128, 256, dtype=torch.float32),

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
whereMethod · 0.80
squeezeMethod · 0.80
subtractMethod · 0.80
maxMethod · 0.80
varianceMethod · 0.80
prodMethod · 0.80
lessMethod · 0.80
scatter_elementsMethod · 0.80
matmulMethod · 0.45

Tested by

no test coverage detected