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

Method main

tests/python/relax/test_transform_fuse_tir.py:723–728  ·  view source on GitHub ↗
(x: R.Tensor(["n", "m"], "float32"))

Source from the content-addressed store, hash-verified

721
722 @R.function
723 def main(x: R.Tensor(["n", "m"], "float32")) -> R.Tensor(["n", "m"], dtype="float32"):
724 cls = Before
725 with R.dataflow():
726 gv = cls.fused_add_exp_squeeze(x, R.const(1, "float32"))
727 R.output(gv)
728 return gv
729
730 def fused_add_exp_squeeze(x, p0):
731 return topi.squeeze(topi.exp(topi.add(x, p0)))

Callers

nothing calls this directly

Calls 10

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
ShapeMethod · 0.80
fused_add_exp_squeezeMethod · 0.45
fused_functionMethod · 0.45
fusedMethod · 0.45
fused_funcMethod · 0.45
fused_add_mulMethod · 0.45

Tested by

no test coverage detected