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

Method main

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

Source from the content-addressed store, hash-verified

559 class Expected_log2:
560 @R.function
561 def main(inp_0: R.Tensor((1, 3, 10, 10), dtype="float32")) -> R.Tuple(
562 R.Tensor((1, 3, 10, 10), dtype="float32")
563 ):
564 with R.dataflow():
565 lv: R.Tensor((1, 3, 10, 10), dtype="float32") = R.log(inp_0)
566 lv1: R.Tensor((1, 3, 10, 10), dtype="float32") = R.divide(
567 lv, R.const(0.69314718246459961, "float32")
568 )
569 gv: R.Tuple(R.Tensor((1, 3, 10, 10), dtype="float32")) = (lv1,)
570 R.output(gv)
571 return gv
572
573 verify_model(Log2(), example_args, {}, Expected_log2)
574

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