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

Method main

tests/python/relax/test_frontend_from_exported_program.py:583–593  ·  view source on GitHub ↗
(
            inp_0: R.Tensor((1, 3, 10, 10), dtype="float32"),
        )

Source from the content-addressed store, hash-verified

581 class Expected_log10:
582 @R.function
583 def main(
584 inp_0: R.Tensor((1, 3, 10, 10), dtype="float32"),
585 ) -> R.Tuple(R.Tensor((1, 3, 10, 10), dtype="float32")):
586 with R.dataflow():
587 lv: R.Tensor((1, 3, 10, 10), dtype="float32") = R.log(inp_0)
588 lv1: R.Tensor((1, 3, 10, 10), dtype="float32") = R.divide(
589 lv, R.const(2.302585092994046, "float32")
590 )
591 gv: R.Tuple(R.Tensor((1, 3, 10, 10), dtype="float32")) = (lv1,)
592 R.output(gv)
593 return gv
594
595 verify_model(Log10(), example_args, {}, Expected_log10)
596

Callers

nothing calls this directly

Calls 5

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
logMethod · 0.45
divideMethod · 0.45

Tested by

no test coverage detected