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

Method main

tests/python/relax/test_frontend_from_exported_program.py:2523–2535  ·  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

2521 class Expected1:
2522 @R.function
2523 def main(
2524 inp_0: R.Tensor((4, 128, 512), dtype="float32"),
2525 inp_1: R.Tensor((4, 128, 256), dtype="float32"),
2526 inp_2: R.Tensor((4, 256, 512), dtype="float32"),
2527 ) -> R.Tuple(R.Tensor((4, 128, 512), dtype="float32")):
2528 with R.dataflow():
2529 lv: R.Tensor((4, 128, 512), dtype="float32") = R.matmul(
2530 inp_1, inp_2, out_dtype="float32"
2531 )
2532 lv1: R.Tensor((4, 128, 512), dtype="float32") = R.add(inp_0, lv)
2533 gv: R.Tuple(R.Tensor((4, 128, 512), dtype="float32")) = (lv1,)
2534 R.output(gv)
2535 return gv
2536
2537 class BAddBMM2(Module):
2538 def __init__(self):

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
einsumMethod · 0.80
meanMethod · 0.80
medianMethod · 0.80
modMethod · 0.80
squeezeMethod · 0.80
flipMethod · 0.80
maxMethod · 0.80
log_softmaxMethod · 0.80
not_equalMethod · 0.80

Tested by

no test coverage detected